- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- default file creation mask
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
10-08-2002 11:44 AM
10-08-2002 11:44 AM
default file creation mask
To my knowledge, in HPUX, the default file creation mask is "0666",or "rw-rw-rw-", and if you have set umask, then it will apply.
But the problem is, umask is applied against the current creation mask(0666), which means no matter how do you set umask, you can't create a file with 'x' permission by default -- is there any way to change the "0666" default file creation mask? (not globally but on a user basis would be even better).
thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 11:52 AM
10-08-2002 11:52 AM
Re: default file creation mask
You need to set it in /etc/profile and it is going to affect everyuser. 022 is most generally accepted umask and if you can bargain for 077 from your users, that will be nice.
On per user basis, they will need to keep this entry in their .profile file of the home directory.
There is a rough way of doing it on per user or per group basis. You will need to embed a script in side /etc/profile to set the umask. For ex., if I keep this script in /etc/profile, then it will set the umask for user1 to 077
if [ $LOGNAME = "user1" ]
then
umask 077
else
umask 022
fi
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 11:53 AM
10-08-2002 11:53 AM
Re: default file creation mask
the default "umask" is 002, not 666, of course.
And compilers do create their files with 777 (minus umask, of course).
But what you ask for can be done with the new JFS3.3 filesystem's ACL (Access Control List) features!
Read the man page about "setacl" for the details...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 11:59 AM
10-08-2002 11:59 AM
Re: default file creation mask
Yes I know the default umask is not "0666", but the default "creation" mask is "0666"(before umask applied), e.g if you don't have umask set, or set as 000, when you create a new file through vi or touch, the file permission will be 0666(rw-rw-rw-), I'm just wondering how to change that to, say 0766.
Maybe the ACL setting for onlineJFS would solve the problem, but I don't have onlineJFS installed ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 12:08 PM
10-08-2002 12:08 PM
Re: default file creation mask
Unfortunately you cannot get "x" permission by default with any umask. So, you have to stick with read and|or write permissions when you "create" a file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2002 07:28 PM
10-08-2002 07:28 PM
Re: default file creation mask
Bill Hassell, sysadmin