RE: scripts execute as user nobody
| From: | Daniel BI | Date: | Fri, 27 Apr 2001 12:33:34 +0000 |
| Subject: | RE: scripts execute as user nobody | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50604@lists.php.net to get a copy of this message | ||
If you are compiling php as an apache module,
you may configure apache with the options:
--server-uid=asduk
and
--server-gid=asdukgrp
(or what you want..)
if you don't compile them at all, may try to
set the directory's group as asdukgrp like this:
chgrp asdukgrp -R path-to-your-php-scripts-dir
it should work.
Daniel BI
==original message==
I have a problem with my PHP scripts on my web-hot, all my php scripts are
running as the user nobody (group nobody).
Whenever I login via ftp/telnet I am logged in as the user asduk (group
asdukgrp).
The problem I have is that I cannot delete my files because the permissions
on the directory is set to 775. I cannot change to the user nobody my host
will not allow that.
If I change the permissions on the directories to 777 then I can delete the
files, but have read that this is dangerous.
If anyone has suggestions on how to get round this problem I'd appreciate
them (or let me know if a user browsing a php site in directories with
permission 777 can exploit this).
I am using PHP 3.0.14 (when using PHP4.05 RC1 on a different host I don't
get this problem - but need this working with PHP 3.0.14)
Thanks for any help
Mr. Adam ALLEN.