So I am still looking for a way to have a process with root permissions change other processes userids.

No sane operating system will let you do that. Rethink your concept.

So any of the cgi options are not what I am looking for.

Re-read my previous posting. I mentioned FastCGI servers. FastCGI servers and CGI programs share the three letters C, G, and I, but that's all. The ancient CGI spec and the FastCGI spec are two very different things, sharing barely more than the three letters and the idea of having four communication channels (input stream, output stream, error stream, environment variables). The most obvious difference is that programs running under the ancient CGI spec handle exactly one request and exit, whereas FastCGI servers handle as many request as they like, even in parallel, like mod_perl and other webserver plugins. Searching Google for FastCGI would have told you that.

FastCGI servers may be started by the webserver, but they can also be managed by the operating system or daemontools. They can run under every user account you like, each server under a different one if needed. The webserver still can communicate with each of them. PHP can also run as a FastCGI server, or as one FastCGI server per needed user account.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^5: How to change the userid of a running external process by afoken
in thread How to change the userid of a running external process by macron0

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.