How do I set the umask for files and directories created from the GUI in MacOS X Lion (10.7)?

Posted by Avry on Super User See other posts from Super User or by Avry
Published on 2012-03-02T10:56:17Z Indexed on 2012/04/05 23:33 UTC
Read the original article Hit count: 259

Filed under:
|

I've set my umask in my .bashrc file to 007. Any files created on the command line after loading my bashrc file respects this setting. I want to be able to set the umask to 007 for any files created using non-command line apps.

This document talks about setting the umask via launchd. And it kind of works. If I follow these directions I can change the default permissions on a GUI created file from rw-r--r-- to rw-rw---- but the directories still are not group writeable (i.e. I want them to be rwxrwx--- but they are rwxr-x--- instead)

The analog on Linux would be /etc/login.defs as the place to set the umask.

What do I change in order for the umask to be set properly (i.e. the way I want it)?

© Super User or respective owner

Related posts about osx-lion

Related posts about file-permissions