[PHP] chmod error?

2002-04-10 Thread John Weez


Hi all...I want to change the ownership of a file that is created via 
php..so i uses  chmod command in my php script.. Upon execution of the 
script i get an error saying command not permitted with a line number 
pointing to my chmod command.

I'm running apache as user nobody for security reasons.

any hints as to how i can get chmod to work would be great...

John



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] chmod error?

2002-04-10 Thread Henrik Hudson

Hello.

First off, to  change ownership you want chown, not chmod. Also, chown 
isn't always permitted depending on the cicrumstances of who owns the 
directory or the specific file to begin with. 

If you're web server is running as nobody it will only be able to create files 
in a directory owned by nobody (or world writable...but that's stupid) or 
modify a file that already exists and owned by nobody. 

If I may ask, what are you trying to change the ownership for / to?

Henrik

On Wednesday 10 April 2002 02:06, John Weez wrote:
 Hi all...I want to change the ownership of a file that is created via
 php..so i uses  chmod command in my php script.. Upon execution of the
 script i get an error saying command not permitted with a line number
 pointing to my chmod command.

 I'm running apache as user nobody for security reasons.

 any hints as to how i can get chmod to work would be great...

 John

-- 


--
Henrik Hudson
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php