1833921 Members
4539 Online
110063 Solutions
New Discussion

umask

 
SOLVED
Go to solution
Pete Devlin
Valued Contributor

umask

Hi this is my first post ! Can anyone tell me if there is a definitive area where I can set umask for all users on a Hpux box (inc root) ? I have my required setting in /sbin/rc & booted the box but this seems to bear no relation to the actual umask. I have edited the root .profile & amended that but if I have to go to every useron every system & edit each .profile I'll be here forever (but get very good at it!!). For future new users I have amended the /etc/skel/.profile.Or is it I should only be concerned with root ?
thanks
Pete.
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: umask

/etc/profile
It works for me (tm)
James R. Ferguson
Acclaimed Contributor
Solution

Re: umask

Hi Pete:

/etc/profile is sourced first and then $HOME/.profile during login when the POXIX (default) or ksh shell is declared as the default shell. Thus, /etc/prpfile is one place you could put a global, default umask setting.

...JRF...
Pete Devlin
Valued Contributor

Re: umask

Thanks guys.
Joe Colucci_1
Frequent Advisor

Re: umask

Pete,

The previous replies are correct, but they neglected to mention that /etc/profile is NOT read during a dt login by default. To read /etc/profile during dtlogins, you must put a link to /etc/profile in /etc/dt/config/Xsession.d.

--Joe