Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.