Operating System - HP-UX
1834150 Members
2441 Online
110064 Solutions
New Discussion

Re: Default umask setting question

 
aaaA_4
Regular Advisor

Default umask setting question

Hi everybody,

I'd like to set system-wide value for umask, using /etc/default/security file, with some exceptions, defined on per-user basis by userdbset (running 11.31 with Bastille in place). Here is my test case:

# grep UMASK /etc/default/security
UMASK=022

# userdbget -u lp
lp UMASK=077

# su lp -c 'umask'
022


Why has the user LP umask set to 022 (/etc/default/security) and not to 077 (userdb), as intended.

Thank you,
n.



5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Default umask setting question

Shalom,

Try setting umask in /etc/profile

If this as I expect interferes with normal operations of the system, then try adding it to the end of the user .profile files, that should cover it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
aaaA_4
Regular Advisor

Re: Default umask setting question

Hi,

that's the way, I was used to do it in 11.11 environment. Now, I'd like to use User database feature, which gives me more possibilities.

Thank you,
n.
delzy
New Member

Re: Default umask setting question

hi

U can set the umask 077 in the .profile of the user.

regards

Delzon
Patrick Wallek
Honored Contributor

Re: Default umask setting question

Does it make any difference if you do a:

# su - lp -c 'umask'
aaaA_4
Regular Advisor

Re: Default umask setting question

Hi Patrick,

there is no difference in output...

Thank you,
n.