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

Hi can I make in linux any future file created in some directory, writable.

Thank you


share|improve this question
Did you consider using ACLs? – Khaled Jan 21 '11 at 12:14
I'm not the admin so, it sounds too big step for this aim – gidireich Jan 21 '11 at 12:31

Use umask. For instance :

umask 0000

Will make files created afterwards (ie, in the same session) have the rw permissions for everyone :


Should you want to make that change persistant, just place it into ~/.bashrc (assuming your shell is bash).

umask works by bit-masking the default permissions used on file creation, check its man page for more details.

share|improve this answer
Thanks. How can I set this for a single specific directory? – gidireich Jan 21 '11 at 12:07
Short answer : you can't, umask works on a per-session basis. I had overlooked this requirement in your question. If you can't use ACLs, I guess you could hack something into your user's .bashrc to set the umask only when in this specific directory. – François Feugeas Jan 21 '11 at 14:02

You may also use the setuid-bit on a directory to force all created files to a specific group.


share|improve this answer
This is nice, but will not do the trick – gidireich Jan 21 '11 at 12:33

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.