I have created directories and need to change the owner and group that they are assigned to it. My commands chown($new_directory,$usercode);
chgrp($new_directory,"root");

where $new_directory is the full location and directory name.

both produce the errors:
Warning: chown(): Operation not permitted in /srv/www/htdocs/setup.php on line xxx

Warning: chgrp(): Operation not permitted in /srv/www/htdocs/setup.php on line xxx

despite the fact that i've set up the directory to have 0777 mods.

Any ideas?

    Write a Reply...