Re: Where does umask come from?
Re: Where does umask come from?
- Subject: Re: Where does umask come from?
- From: "e.sammer" <email@hidden>
- Date: Fri, 09 Nov 2001 17:03:31 -0500
Phil Barrett wrote:
Inside Mac OS X System Overview, Booting and Logging, The Login Procedure
says:
loginwindow does the following:
...
10. Obtains the file-creation permissions mask (umask) from the user's
preferences and sets it.
But where exactly does it obtain the umask? We're about to ship a multi-user
application, and need to be able to tell users how to set their default
umask.
According to the old NeXT man page for loginwindow, it read NSUmask from
somewhere - and NSUmask is still referenced by the OS X loginwindow today:
% strings /System/Library/CoreServices/loginwindow.app/loginwindow | grep -i
umask
NSUmask
%
i don't know about NeXT or NSUmask, but in the
unix world, it can be set in /etc/profile
/etc/login or ~/.profile ~/.cshrc. most of the
time it's handled specifically by the system, so
it can be in weird places. just a thought - check
the FreeBSD docs and find out where they set it.
on the other hand, i could be completely wrong
about the whole things and it could be in
NSUserDefaults somewhere....
hope this helps... good luck
(ps - please try to avoid cross posting to lists)
--
e.sammer
email@hidden