Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set the default umask to umask 002. I tried adding it to:


But after restarting Apache it hasn't changed? Still 0022. Where do I have to put it?


share|improve this question
See… for the answer. – Paweł Brodacki Sep 21 '11 at 4:56

Probably the best place is the apache startup scripting in /etc/init.d/ directory.

share|improve this answer

The best place is where you've put it, /etc/apache2/envvar, afaik

If you're using mod_dav, you may be looking at a bug in the Apache mod_dav module in 10.04 (2.2.14 apache2) so that all files are created with the wrong permissions.

I added one line to /etc/cron.daily/apache2 to chmod -R a+r /var/www/webdavblah which happened to fix my particular problem.


share|improve this answer
And as noted on that bug report, it has finally been fixed: "This bug was fixed in the package apache2 - 2.2.14-5ubuntu8.9". I have updated and yay it works ! – commonpike Jul 10 '12 at 12:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.