- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Setuid on a 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
Discussions
Discussions
Forums
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
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
тАО09-13-2006 07:36 AM
тАО09-13-2006 07:36 AM
Setuid on a directory
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 07:53 AM
тАО09-13-2006 07:53 AM
Re: Setuid on a directory
You've discovered that setgid on a directory will cause subdirectories to inherit their parent's group. However, there is no analogue for suid (I think you meant 'chmod u+s /dir'?).
Note that this is different from setting the sticky bit for a directory, which prevents users from deleting files other than their own.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 07:58 AM
тАО09-13-2006 07:58 AM
Re: Setuid on a directory
No, you aren't missing anything. This is the expected behavior.
Setting the 'setgid' bit on a directory causes all files in the directory to be created with their group ID equal to that of the parenet directory. This applies for new directories, too. These new subdirectories will also have their setgid bit set on (at least on some Unixes).
Setting the 'setuid' bit on a directory has no effect on the ownership of files created in the directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 08:08 AM
тАО09-13-2006 08:08 AM
Re: Setuid on a directory
I need to control the user ownership of files dumped onto a directory. Cronning a chmod would not be an acceptable solution either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 09:16 AM
тАО09-13-2006 09:16 AM
Re: Setuid on a directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2006 02:27 PM
тАО09-13-2006 02:27 PM
Re: Setuid on a directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2006 01:58 AM
тАО09-14-2006 01:58 AM
Re: Setuid on a directory
developers place files in a staging directory. The QA group copies the files from this directory to a location the developers do not have access to. We are using Samba for QA to move the files from one directory to the other. The QA folks are mapped to a single "QA" unix userid, but what we were seeing in Samba is that the file ownerships were being retained even though we were using the "force user" parameter in Samba. We thought we could get around this with the setuid bit on the directory. What we've since discovered is that the "force user" works across Samba folders, but not within a single folder. The staging and QA areas were subdirectories within a samba share. We changed the samba config such that each subdirectory is now its own share, and now when you copy files across, the ownerships are changed accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2006 02:02 AM
тАО09-14-2006 02:02 AM
Re: Setuid on a directory
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2006 02:20 AM
тАО09-14-2006 02:20 AM
Re: Setuid on a directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2006 02:34 AM
тАО09-14-2006 02:34 AM