- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Override umask on a specific directory
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
07-23-2007 06:32 AM
07-23-2007 06:32 AM
Override umask on a specific directory
ls -ld /home/pd_user
drwxrwsr-x+ 2 pd_user users 8192 Jul 23 11:06 /home/pd_user
getacl /home/pd_user
# file: /home/pd_user
# owner: pd_user
# group: users
user::rwx
group::rwx
class:rwx
other:r-x
default:user:oracle:rwx
default:user:pd_user:rwx
default:group:users:rwx
getacl /home/pd_user/test.txt
# file: /home/pd_user/test.txt
# owner: pd_user
# group: users
user::rw-
user:oracle:rwx #effective:r--
user:pd_user:rwx #effective:r--
group::r--
group:users:rwx #effective:r--
class:r--
other:r--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 06:40 AM
07-23-2007 06:40 AM
Re: Override umask on a specific directory
I know that you cannot set exe permissions via umask, so that is out altogether.
The only real way I know to control that would be to have the users su - to pd_user and set the umask in .profile to match what you wanted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 06:46 AM
07-23-2007 06:46 AM
Re: Override umask on a specific directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 07:13 AM
07-23-2007 07:13 AM
Re: Override umask on a specific directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 02:05 PM
07-23-2007 02:05 PM
Re: Override umask on a specific directory
There is *NO* reason to have execute bits set on anything except a script. Unfortunately, there are far too many books that say: chmod 777 to 'fix' permission problems. As the man page for umask describes, a directory starts as 777 and the value for mask is subtracted from that value. Files always start as 666 and umask takes away from that value. There is no possible way (nor do you want it) to set 777 permissions on a file with a umask value. You do not want files with execute bits set *UNLESS* they are scripts.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2007 04:47 PM
07-23-2007 04:47 PM
Re: Override umask on a specific directory
If your umask is 002 then having these two users in the same group would give RW permission.
Other than a crontab job to change the permissions or add ACLs, I don't see how you can solve the issue.
>Todd: I know that you cannot set exe permissions via umask, so that is out altogether.
You can use umask to not subtract the X bit, so that is just as good. Only directories and executables will have X. When you create a script, you must manually use chmod a+x.