boxoffuzz

Q: How do I set a global umask in Yosemite?

I'm needing to set a global umask so that when my users write files to our network storage, they are written with the proper permissions and can be read by those in the same group. We used to set this by adding a line to /etc/launchd-user.conf specifying the umask, per this article:

 

Mac OS X: Setting a custom umask - Apple Support

 

It appears that under OS X 10.10.1, that configuration file no longer has any effect.

 

Looking at the launchd.conf man page I see this wonderful statement

 

> "launchd.conf contains a list of subcommands (load, unload, etc.) to run via launchctl(1) when launchd(8) starts. The $HOME/.launchd.conf file was never implemented and will not be implemented.  launchd.conf is no longer respected by the system.

 

So what is the new canonical Apple way to set a umask on a system?

MacBook Pro with Retina display, OS X Yosemite (10.10.1)

Posted on Jan 26, 2015 5:48 PM