Re: Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

From: Date: Fri, 03 Nov 2006 21:15:55 +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-244179@lists.php.net to get a copy of this message
On Fri, November 3, 2006 12:45 am, 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. I believe that the umask and other OS settings may also affect who ends up owning a file created by 'root'... http://php.net/umask You're running this as CLI, right?... Cuz if you are running your web server as root, shut it down NOW. :-) (Anybody reading this who is running their server as root and actually knows what they are doing: You ain't the one asking the above question, now, are you?...) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#244179) next »