Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Does HP-UX ignore SGID bit?
System Administration
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP