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.
Changing file owner in PHP script
Moderator: General Moderators