I have one directory called apps/cache
. When a script writes some files to that directory those files are owned by the nobody
user. Of course, then those files and folders are not editable by any user.
Is there any way that I can change the user nobody
?
Use suEXEC within Apache to run your scripts as an appropriate user.
Also, consider learning a lot about setuid. A lot.
Check your configuration (apache) for the directive
User
. This is where you set the user apache starts and operates in the first place.check these variables in your configuration folder and change accordingly
Some Centos setups may have Apache settings under "httpd"
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf
find the lines starting with
User
andGroup
- create them if they don't exist.