Re: syntax woes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux