- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Default umask setting question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 02:47 AM
04-16-2008 02:47 AM
Default umask setting question
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 02:49 AM
04-16-2008 02:49 AM
Re: Default umask setting question
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 02:54 AM
04-16-2008 02:54 AM
Re: Default umask setting question
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 04:08 AM
04-16-2008 04:08 AM
Re: Default umask setting question
U can set the umask 077 in the .profile of the user.
regards
Delzon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 05:08 AM
04-16-2008 05:08 AM
Re: Default umask setting question
# su - lp -c 'umask'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2008 05:50 AM
04-16-2008 05:50 AM
Re: Default umask setting question
there is no difference in output...
Thank you,
n.