chown() despiration

From: Date: Thu, 23 Jan 2003 13:49:35 +0000
Subject: chown() despiration
Groups: php.general 
Request: Send a blank email to php-general+get-132826@lists.php.net to get a copy of this message
I could do this in perl but I'm being stubborn :-) When I run the following code as a regular user, everything fails. When I run it as root the directory is created and the chmod works. However, chown reports: chown failed: Operation not permitted Here is the code. $Directory2Create = "/home/e-govdemo/htdocs"; mkdir($Directory2Create,0777); chown($Directory2Create,"egovdemo"); chmod($Directory2Create,0777); "egovdemo" is a legal user name as can be seen from this partial directory listin.
egovdemo nobody       4096 Sep  6 11:29 Logs	
also tried chown($Directory2Create,"egovdemo:nobody"); chown($Directory2Create,"637"); chown($Directory2Create,"637:99"); To help save my few reamining hairs and could someone with root privilege try it and see if it's me or PHP? Thanks Urb

« previous php.general (#132826) next »