Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: How to set NSUmask in Leopard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: How to set NSUmask in Leopard
Authored by: kyngchaos on Dec 17, '07 09:16:58AM

That old hint for changing NSUmask recommends changing the user's globalPreferences.plist, not the system's. What would be the equivalent user launchd.conf?



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: allanmarcus on Dec 17, '07 02:56:00PM

I don't know that you can. You can set it for a user's shell environment in their .profile file, but I don't know how you set it per user for the GUI apps.



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: kyngchaos on Dec 18, '07 08:21:06AM

Hm, if .profile is your suggestion, then ~/.MacOSX/environment.plist should set it for GUI apps.



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: allanmarcus on Dec 18, '07 12:09:46PM

that plist if for setting environment variables. I don't think umask is an environment variable.



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: kyngchaos on Dec 18, '07 02:06:04PM

Oh, right. rats.



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: usovalx on Dec 18, '07 06:04:52PM

Let me give you the recipie:

Open Terminal.app and type in
> man launchd.conf

In the man file look for the section called FILES -- there you can see
that there is one more file $HOME/.launchd.conf, which is just what you
are looking for.

Quit manual page and run the following command:
> echo "umask 077" > $HOME/.launchd.conf

and then re-login. That should be it.



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: allanmarcus on Dec 19, '07 07:15:03AM

FYI: from Apple enterprise support:

"Following up with some more information on this one. Turns out that Leopard was supposed to let you set the umask on a per-user basis by creating a ~/launchd.conf file, but unfortunately that's broken. "



[ Reply to This | # ]
10.5: How to set NSUmask in Leopard
Authored by: Mattbot on Jul 24, '08 10:19:07AM

If you are running 10.5.3 or higher, create /etc/launchd-user.conf and add the line "umask nnn". (Where nnn is the mask you want.) This should effect the users only, not the system.



[ Reply to This | # ]