HT201684: Mac OS X: Setting a custom umask

Learn about Mac OS X: Setting a custom umask
tas_rac

Q: Did setting UMASK through launchctl work for anyone ?

Setting the umask that way did not work.

The following line shows the umask set to "007" using launchctl:

rallidae:~ myname$ sudo defaults read /private/var/db/com.apple.xpc.launchd/config/user.plist { Umask = 7; } 

After a reboot, as required, the next lines show that the umask for my user does not respect the entry in the PLIST:

rallidae:~ myname$ umask

0022

The next lines show that the umask in the PLIST isn't respected for SUDO either:

rallidae:~ myname$ sudo umask

0022

Anyone else get a similar result?

Posted on Sep 8, 2015 2:55 PM

Close

Q: Did setting UMASK through launchctl work for anyone ?

  • All replies
  • Helpful answers