I have not been able to set a umask for www-data
(apache's user).
I tried to put umask 002
, like in many other examples I found, in /etc/init.d/apache2
script, or in /etc/apache2/envvars...
. Then I restart my apache server.
As an example, after restarting, if I do:
sudo su - www-data
touch file
The file gets always the default rw-r--r-- permissions (umask 022
), while I want rw-rw-r-- (umask 002
).
Changing this has been up to now an impossible task in Ubuntu Hardy (8.04).
Can anybody help me please ?
Thanks