in reply to Running a daemon process as another user
At the top of the script, say
I've imported setsid, too, since you need it to manifest a daemon.use POSIX qw/setuid setsid/; BEGIN { setuid scalar getpwnam 'toadi' or die $!; }
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Running a daemon process as another user
by toadi (Chaplain) on Oct 27, 2004 at 08:30 UTC | |
by Happy-the-monk (Canon) on Oct 27, 2004 at 09:06 UTC |