Hi,
I tried to give the www user a login shell (sh) and set in .profile
When I do [cmd=]sudo su - www[/cmd] I have the correct umask.
But when I start the webserver it does not affect it.
I set
in /usr/local/etc/rc.d/apache but I normally avoid to modify such files, because they could be modified/kicked due to a portupdate.
Any ideas?
BTW: my problem is, I have inside my /home some webroots, and when Apache creates files (php, joomla) the files are in the group www (which I'm in of course) but in 644 so I can't modify/delete them without sudo or root permissions.
I tried to give the www user a login shell (sh) and set in .profile
Code:
umask 002
Code:
$ sudo su - www
$ umask
0002
But when I start the webserver it does not affect it.
I set
Code:
umask 002
Any ideas?
BTW: my problem is, I have inside my /home some webroots, and when Apache creates files (php, joomla) the files are in the group www (which I'm in of course) but in 644 so I can't modify/delete them without sudo or root permissions.