Re: Script permissions
| From: | Brian Clark | Date: | Thu, 14 Dec 2000 23:48:09 +0000 |
| Subject: | Re: Script permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30397@lists.php.net to get a copy of this message | ||
Hello Jeff,
(JW == "Jeff Wyman") wysoft@wysoft.tzo.com writes:
JW> Is there any way that I can run a single PHP script with root
JW> permission without changing Apache's username from "nobody"?
If you're running it as a CGI, look at:
man -k setuid
man -k chmod
In addition to the file permission modes, the following mode bits are
available:
4000 Set-user-ID on execution.
2000 Set-group-ID on execution.
1000 Enable sticky bit; see sticky(8) and chmod(2).
JW> Please bare with me, I know little of these things and I'm having
JW> a hard time finding this answer.
Be careful with setuid and setgid..
-Brian
--
Some things are better left unfinished, except.