What, specifically, happens when I change the real and/or effective user and group ID of a process? To be more specific, if the program is initially running as root, or setuid root, and I change the real and/or effective user/group of the process to, say, that of a specific user, does all of that processes root privilages go away? I want to be able to fork() a process to be run as a specific user with the same privilages as that user, from an originally root-owned process.
I suspect the answer is pretty obvious, but I'm too lazy to test it out, since I'm still in the planning stage ;)
And yes I know this is a unix question and not really a perl one, but it's in the context of a perl project I'm planning.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.