- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: umask set to 00 from... where?
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-15-2005 08:05 AM
тАО08-15-2005 08:05 AM
I have just installed HP-UX 11.11 in two boxes. In both of them /sbin/rc script sets umask to 022. No setup for umask is in /etc/profile. However, sessions are reporting umask as 00 (it is, 000). What other bott script could be changing umask after /sbin/rc does?
/etc/profile is not a godd choice to force umask as it is not read by at, batch and cron jobs. Thanks for your comments.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 08:25 AM
тАО08-15-2005 08:25 AM
Re: umask set to 00 from... where?
Well I believe that even IF the umask states 000 the OS will still *not* create files as such. UNIX imposes a minimum 022 mask which cannot be overriden. One has to manually chmod the file/dir after creation if you wish looser perms - although I never recommend it unless absolutely necessary & even then it's usually because things aren't architected properly.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 08:29 AM
тАО08-15-2005 08:29 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 08:32 AM
тАО08-15-2005 08:32 AM
Re: umask set to 00 from... where?
The umask of 022 is the most *common* user set mask.
If you cannot find any umask directives in .profile nor anything being called by it I would look at startup scripts for applications.
But one can also set umask with system calls & you wouldn't be able to see it unless you could see the source code.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:53 PM
тАО08-15-2005 01:53 PM
Re: umask set to 00 from... where?
Of course, this is flat out wrong from a sysadmin point of view because all files will be 666 permission and all directories 777, thus allowing anyone to trash anything that is ceated without subsequent tightening of the mode values. umask has remained unset in HP-UX for more than 20 years (as in many other Unix flavors) and every sysadmin must immediately set it in all the login profiles (/etc/profile, /etc/csh.login and others). Typically it should be set to 022 but I usually make root's mask 077, thus requiring root to make a conscious decision to open up the permissions on root-created files and directories.
Bill Hassell, sysadmin