Change linux user in script instead of webserver
Moderator: General Moderators
-
dimxasnewfrozen
- Forum Commoner
- Posts: 84
- Joined: Fri Oct 30, 2009 1:21 pm
Change linux user in script instead of webserver
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?