Change linux user in script instead of webserver
Posted: Tue May 04, 2010 9:08 am
I'm writing a scripts that dynamically generates files on the server (internally). I noticed that the the files that are being created are created as the webserver user and group, in my case this is Apache. I understand why it does this but is there anyway to change the user in the script instead of chown/chgrp/chmod after every file?