Re: Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?
| From: | Chris | Date: | Fri, 03 Nov 2006 06:50:23 +0000 |
| Subject: | Re: Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244134@lists.php.net to get a copy of this message | ||
John.H wrote:
My php program whose owner is root: <? mkdir('test',0777); ?> and the folder 'test' 's owner is 'nobody'? why?should the folder belong to 'root' too? By the way,the safe mode is turned on.If you're running this through your webserver, then the webserver is actually executing the script, not the "owner" of the script. So apache is running as 'nobody', the script executes, all commands the script makes are done as 'nobody'. -- Postgresql & php tutorials http://www.designmagick.com/