Page 1 of 1

Changing file owner in PHP script

Posted: Wed Aug 13, 2003 11:11 am
by MattSharp
I am having a problem when using a file upload script. The script sets itsel f and as the owner and group and the script never needs to use the file again. Other users on the network need access to the file and be able to eventually delete it. I have to go in and manually change the owner of the file to allow the user to delete it. So I need a way to change the owner of the file, but chwon function is useless since you must be root to do it and the script isnt root.

This may actually be more a linux admin question but if there is a way I can do it in the script it would be nice.

Posted: Wed Aug 13, 2003 8:03 pm
by McGruff
Maybe you could provide access to the file via a php script and FTP fns?