1837118 Members
2435 Online
110112 Solutions
New Discussion

Umask

 
SOLVED
Go to solution
tigm7103105q1
Contributor

Umask

Where the OS- HP-UX save the mask for default.
Where can I see the mask for default.

THANK's.
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Umask

Type 'umask' at the prompt to see what your umask is. The umask can be set / changed in a number of places depending on your shell. /etc/profile and ~/.profile are the most common (for sh and ksh).

Mic V.
Esteemed Contributor
Solution

Re: Umask

/etc/profile is a global location. If you put information here, it changes it for all accounts who log in with the POSIX (/usr/bin/sh or /sbin/sh) shell. Look at the /etc/passwd file, last field, to see who has which shell.

${HOME}/.profile or ~/.profile is a per-user location. It applies to POSIX shell.

Different user shells (other than POSIX) can use different configuration files to set a local or global umask value.
What kind of a name is 'Wolverine'?
Sridhar Bhaskarla
Honored Contributor

Re: Umask

Hi,

It is recommended to set the umask in /etc/profile and (csh.login for c-shell). This way in case the user doesn't set umask in his/her .profile, it will be defaulted to the one in /etc/profile.

077 is a good umask to set if you can. 027 and 022 follow.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Patrick Wallek
Honored Contributor

Re: Umask

Be aware that if you set the umask globally with /etc/profile each user can over-ride that value by modifying their own .profile file or by simply typing 'umask some_value' at the command line.