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

How can one set the executable bit on files using umask? According to documentation, a umask of 000 should work, but in practice this only works on directories.

Also open to other methods of automatically setting +rwx on a particular user's created files if you have any.

share|improve this question
Why would you want to do this? There is a reason why things are not executable by default. It sounds like a potential security issue to me. – Zoredache Sep 13 '12 at 23:32

There is no general automatic way to have The file mode set to rwx. The umask setting does not set the bits it stops them from being set. It is up to the application that is creating the file to set the file mode appropriately which is then modified by umask.

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.