Re: adding unix account via system command
| From: | Marek Kilimajer | Date: | Wed, 18 Sep 2002 08:57:17 +0000 |
| Subject: | Re: adding unix account via system command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116693@lists.php.net to get a copy of this message | ||
It's a shell script, and your shell drops root privileges. Use a shell that doesn't or use a C-wraper.
tim tom wrote:
Dear Pete, Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ? -- tim --- Peter Houchin <php@vfsa.com.au> wrote:you need to make sure that the web has permission to use that file .. my guess is it don't have permission hence why you can run add.sh from the command line (where your not your web user I'm assuming).__________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com