Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have Apache 2.2 running under FreeBSD 7 (and 8). It runs with the system default umask of 022, and I need it to be 002 so that www group members can make changes without having to chase it with chmod.

I put www into a login class with an overridden umask, which did not work.

How can I force a umask of 002 in Apache, independent of how Apache is launched (rc.d or apachectl, etc).

share|improve this question

You seek the assistance of mod_umask (not, to my knowledge, available in ports - haven't gone on an extensive search though).

share|improve this answer

If you have www user, try to make to him a home directory then open /home/www/.bashrc and set default umask you want.

share|improve this answer

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.