HPE GreenLake Administration
Operating System - HP-UX
1831185
Members
2835
Online
110021
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
07-05-2005 02:10 AM
07-05-2005 02:10 AM
umask
Hi
I have tried reading the man pages on umask but cant seem to get my head around it... can anyone explain to me what this is and how it is used and what the benefits of using umask are.
Thank you
Regards
Debbie
I have tried reading the man pages on umask but cant seem to get my head around it... can anyone explain to me what this is and how it is used and what the benefits of using umask are.
Thank you
Regards
Debbie
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 02:25 AM
07-05-2005 02:25 AM
Re: umask
Hi
Please refer to following page of hp docs:
http://docs.hp.com/en/B2355-90046/ch24s35.html
Regards
Mahesh
Please refer to following page of hp docs:
http://docs.hp.com/en/B2355-90046/ch24s35.html
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 02:43 AM
07-05-2005 02:43 AM
Re: umask
It's actually rather simple. First, it's easier if you think of file modes (permissions) in octal rather than symbolic form. 1 = execute; 2 = write; 4 = read. Next think of owner, group, other in terms of octal digits in that order as well.
There are two components at play when a file is created. 1) Mode 2) Umask
For example, the mode of a regular file under the shell is 666; umask then "subtracts" from this mode to yield the actual mode of the file. (It's not really subtraction but you can think of it this way.) Umask cannot put in what was not there so for example, you will never be able to create a file in the shell with the execute bit set because the execute bit is not set in the default mode.
The idea behind umask is to make the system more secure. Again, with a regular file the default mode is 666. If umask were 000 then the actual mode of the file would be 666 but typically you would not want "other"s reading your file and greoup members shouldn't write to your file. A good umask for this, would be 026 or 027.
There are two components at play when a file is created. 1) Mode 2) Umask
For example, the mode of a regular file under the shell is 666; umask then "subtracts" from this mode to yield the actual mode of the file. (It's not really subtraction but you can think of it this way.) Umask cannot put in what was not there so for example, you will never be able to create a file in the shell with the execute bit set because the execute bit is not set in the default mode.
The idea behind umask is to make the system more secure. Again, with a regular file the default mode is 666. If umask were 000 then the actual mode of the file would be 666 but typically you would not want "other"s reading your file and greoup members shouldn't write to your file. A good umask for this, would be 026 or 027.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP