GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,762
318
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
There is probably a simple method that I am missing here, but, here is my problem.

I have a client that installed a PHP script. This PHP script created a couple of directories. Since PHP runs as nobody, the directories it created are owned by nobody. Now he wants to modify the files in nobody, but since he is not nobody (he is obviously somebody) the system will not allow him to do so sice it only gave permissions for the owner to modify. He also, obviously, cannot chmod ot chown them

I know I can fix this as root, but that is really not the right answer. How can he modify this stuff on his own?

Thanks!
 

Damian

Well-Known Member
Oct 1, 2001
108
7
318
There are two things you could do for this client.

1- Enable phpsuexec on the server so that all PHP scripts will run under the users ID and create files/directories as that user instead of the web servers user "nobody".

*I'd recommend some reading up on phpsuexec before enabling it. There are some items to be considered.

2- Setup a cron as root to chown the directories and files every x minutes or as needed.