- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Effect of umask 022 in /etc/profile
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
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-12-2008 05:42 AM
тАО08-12-2008 05:42 AM
I considering putting umask 022 in /etc/profile on all our unix servers. I just wanted get some feedback as to what problems this may cause to my users or applications before I put the entry in /etc/profile.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2008 05:48 AM
тАО08-12-2008 05:48 AM
Solutione.g. the users group and others will not be able to write to the file.
This is a good place to set security. If your groups interact alot then set their individual to 002.
If privacy is a concern then set it globally to 026 or 027. This will default to no access for others.
Not knowing what your current setting is, how many users, what type if interaction they need the real answer is tough to say but the above should give you a place to start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2008 05:52 AM
тАО08-12-2008 05:52 AM
Re: Effect of umask 022 in /etc/profile
All new files carry a default permission (without umask) of 666 and all directories carry a default permission (without umask) of 777. The way it works is you subtract the umask number from the default permission without the umask to get the new permission.
So if your umask is 022, for files your default permission would be 644 and directories would be 755:
666 - 022 = 644
777 - 022 = 755
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2008 07:29 AM
тАО08-12-2008 07:29 AM
Re: Effect of umask 022 in /etc/profile
The effect will be to keep users out of each others files.
This is normally a good thing, but you may want to set umask differently if a group of users needs to collaborate on a project.
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
тАО08-12-2008 07:36 AM
тАО08-12-2008 07:36 AM
Re: Effect of umask 022 in /etc/profile
We have put the umask of 022 in /etc/profile for as long as I can remember. It is a good starting point. Better than nothing but could be tighter.
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2008 11:52 AM
тАО08-12-2008 11:52 AM
Re: Effect of umask 022 in /etc/profile
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2008 05:30 PM
тАО08-12-2008 05:30 PM
Re: Effect of umask 022 in /etc/profile
Bill Hassell, sysadmin