umask appears to reset to default (022) when you logout and login again. (in terminal) so it behaves more like a shell variable than anything else

not particularly useful unless you set it in your .profile, and I wouldn't expect it to work in other processes or in Finder?

i.e. if you open a terminal window and change the umask, it sticks. but if you then leave that window open even, and make a new terminal window and check umask, it's back at default

There's a daemon app that I'd love to set the umask to 002 instead of 022 because although I can assign the group to the files it makes, I cannot define the mask, so all the files it makes are read-only to the group it's a part of, and I have to update them all the time.

I tried using "sudo -u daemonusername umask 002"
but it acted as though I had not done it when I tried
"sudo daemonusername umask", it was back at 022. it was then that I tried logins with terminal and found that the umask did not affect new login sessions.


I work for the Department of Redundancy Department