Re: syntax woes

From: Date: Fri, 03 Apr 2009 00:32:10 +0000
Subject: Re: syntax woes
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-291004@lists.php.net to get a copy of this message
Shawn McKenzie wrote:
Chris wrote:
Wow, it does chown and chmod as well, thats friggen cool.
chown will only work if the script is running as root which I doubt your drupal site will be.
Or if the script is running as a user/group that has write permissions to the dir/file that your trying to chown.
chmod may allow that, but not chown. server:~# groupadd test server:~# useradd a -g test server:~# useradd b -g test server:~# mkdir /test server:~# chown a.test /test server:~# su - a No directory, logging in with HOME=/ a@server:/$ cd test a@server:/test$ chmod 775 . a@server:/test$ touch a a@server:/test$ chmod 664 a a@server:/test$ chown b.test a chown: changing ownership of `a': Operation not permitted a@server:/test$ -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#291004) next »