in reply to Re^3: How to run a perl script under "nobody" user?
in thread How to run a perl script under "nobody" user?
What I really want is the script can run under "nobody" user like the Apache way.
We usually start apache like this:
then, when we `ps aux | grep apache`, we can find that apache's user id is "nobody":sudo /usr/local/apache2/bin/apachectl start
How can I make my perl script like this?root 1102 0.3 0.2 5972 2368 ? Ss 18:35 0:00 /usr/ +local/apache2/bin/httpd -k start root 1103 0.0 0.0 1620 300 ? S 18:35 0:00 /usr/ +bin/cronolog /usr/local/apache2/logs/access_%Y-%m-%d-%H-%M.log nobody 1109 0.0 0.1 5972 1496 ? S 18:35 0:00 /usr +/local/apache2/bin/httpd -k start nobody 1110 0.0 0.1 5972 1496 ? S 18:35 0:00 /usr +/local/apache2/bin/httpd -k start nobody 1111 0.0 0.1 5972 1496 ? S 18:35 0:00 /usr +/local/apache2/bin/httpd -k start nobody 1112 0.0 0.1 5972 1496 ? S 18:35 0:00 /usr +/local/apache2/bin/httpd -k start nobody 1113 0.0 0.1 5972 1496 ? S 18:35 0:00 /usr +/local/apache2/bin/httpd -k start
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to run a perl script under "nobody" user?
by JavaFan (Canon) on Nov 19, 2008 at 10:54 UTC | |
|
Re^5: How to run a perl script under "nobody" user?
by moritz (Cardinal) on Nov 19, 2008 at 10:46 UTC | |
|
Re^5: How to run a perl script under "nobody" user?
by MidLifeXis (Monsignor) on Nov 19, 2008 at 14:58 UTC |