- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Does HP-UX ignore SGID bit?
Operating System - HP-UX
1753880
Members
7400
Online
108809
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
Discussions
Discussions
Forums
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
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
тАО12-02-2010 08:43 AM
тАО12-02-2010 08:43 AM
Does HP-UX ignore SGID bit?
Hi guys,
I want to inherit parent dir permissions on newly created files. But it is look like, that SGID bit on dir (g+s) is ignored, also option default on ACL too. I tried to test g+s bit on GNU/Linux, and the new file inherites permissions as expected, but not on HP-UX 11v3. Also no options as 'nosuid' are set on the filesystem.
Any suggestions? Thanks.
I want to inherit parent dir permissions on newly created files. But it is look like, that SGID bit on dir (g+s) is ignored, also option default on ACL too. I tried to test g+s bit on GNU/Linux, and the new file inherites permissions as expected, but not on HP-UX 11v3. Also no options as 'nosuid' are set on the filesystem.
Any suggestions? Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2010 09:04 AM
тАО12-02-2010 09:04 AM
Re: Does HP-UX ignore SGID bit?
On HP-UX, if you are root, the SGID bit on directories does not have any effect on you.
For regular users, the SGID bit should work normally, i.e. the group ownership of newly created files/directories is inherited from the parent directory. The permissions are still dictated by user's umask setting, just as usual.
On most Linux distributions, there is a convention to create a personal group for each user, with the group name equal to the username, and GID = UID. This will be each user's primary group. As nobody else should belong to that group, it is safe to use an umask that enables group write access by default (e.g. umask 002 or 007).
This allows collaborative work directories to be set up easily: just create a group, add users to that group (as a secondary group), and create a directory with full group access + setgid to that group. The default umask will seamlessly cause the files to be created for just the right permissions for collaborative work.
On HP-UX, the traditional default primary group for regular user is "users". Since all the regular users belong to this group by default, using a default umask that enables group write access would be a security risk. Therefore, the HP-UX default umask for users is 022, and if the system is hardened for extra security, the default might have been tightened further to 027 or 077.
MK
For regular users, the SGID bit should work normally, i.e. the group ownership of newly created files/directories is inherited from the parent directory. The permissions are still dictated by user's umask setting, just as usual.
On most Linux distributions, there is a convention to create a personal group for each user, with the group name equal to the username, and GID = UID. This will be each user's primary group. As nobody else should belong to that group, it is safe to use an umask that enables group write access by default (e.g. umask 002 or 007).
This allows collaborative work directories to be set up easily: just create a group, add users to that group (as a secondary group), and create a directory with full group access + setgid to that group. The default umask will seamlessly cause the files to be created for just the right permissions for collaborative work.
On HP-UX, the traditional default primary group for regular user is "users". Since all the regular users belong to this group by default, using a default umask that enables group write access would be a security risk. Therefore, the HP-UX default umask for users is 022, and if the system is hardened for extra security, the default might have been tightened further to 027 or 077.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2010 09:41 AM
тАО12-02-2010 09:41 AM
Re: Does HP-UX ignore SGID bit?
Hi,
As far as my knowledge is concerned the "nosuid" option on mount is supported on HPUX 11iv3. Try mounting a file system with the nosuid option. It should work. The special permissions are concepts on all flavors of unix but you do see fluctuations as said on the previous post.
Regards
Ismail Azad
As far as my knowledge is concerned the "nosuid" option on mount is supported on HPUX 11iv3. Try mounting a file system with the nosuid option. It should work. The special permissions are concepts on all flavors of unix but you do see fluctuations as said on the previous post.
Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2010 01:50 AM
тАО12-03-2010 01:50 AM
Re: Does HP-UX ignore SGID bit?
Thanks for answers. The SGID works as expected, I tested it accidentaly with user in same group as directory group, so I did not see any changes...
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP