Super User is a question and answer site for computer enthusiasts and power users. 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 want to set a different default permission for new directory and file. For example, default directory permission is 770 (group members can write things to the directory) but default file permission is 640 (not allow group members to delete/modify the file). How can it be done? (I know umask can be used for setting default file/directory permission but it will make both directory and file having the same permission.) Thanks.

share|improve this question
It seems that, as the umask applies to both and that there isn't a separate umask for different types of inodes, this is not possible. – Dan D. Nov 20 '12 at 2:47
Thanks Dan, but then besides umask, is there any other way to achieve this? Thanks. – Kenneth Nov 20 '12 at 3:07

Your Answer


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

Browse other questions tagged or ask your own question.