I'm new to umask so please correct me if i'm wrong.
We have a mac OS X file server at work with multiple SMB shares. Whenever users create files, they get created as -rw-r--r-- as this is the default umask (022). I want to change it to (002) so created files will have -rw-rw---- as default. This way all users in the same group can access the files.
Apple advises to change umask like this:
sudo launchctl config user umask nnn
After doing sudo launchctl config user umask 002
I got the following message:
Configuration applied. You must reboot for changes to take effect.
I rebooted and got the following:
$ umask
0022
what am I doing wrong, please advise.
I'm running OS X Server 10.10.3 Yosemite with Server.app 4.1
cat /var/db/com.apple.xpc.launchd/config/user.plist
andls ...
show?umask
doesn't return the value. Also, try to dosudo launchctl config user umask 022
you'll see that the value in the plist file changes to 18 so I don't think these are interchangeable. What are your thoughts on this?sudo launchctl config user umask 002
in 10.10.5 with no problem (->umask
shows 0002) and the user.plist was updated properly to .... <integer>002</integer>.