in reply to Re: dropping from root to lower user
in thread dropping from root to lower user
Perl programs can do this fairly reliably in the Unix world by passing the socket handle through a pipe to an unprivileged child, or just passing the relevant data.
I agree that programmers should avoid writing programs that run as root, but a lot of mine do because they automate system admin jobs that must be done as root.
avoid running the prog as root in the first place, unless this program will never live on a machine that ever gets connected to the internet.
Your operating system runs as root, you know :)
____________________
Jeremy
I didn't believe in evil until I dated it.
|
|---|