- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: setuid, setgid and sticky bit?
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
тАО05-15-2007 04:05 PM
тАО05-15-2007 04:05 PM
Hope this is the correct category.
I need to explain to user in layman terms the impact of a _directory_ with the flwg perms:
drwsrwsr-t 5 flnpac users
TIA.
Rgds,
Shahril
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 04:17 PM
тАО05-15-2007 04:17 PM
Solutionsetuid and setgid flags on a directory have an entirely different meaning.
Directories with the setgid permission will force all files and sub-directories created in them to be owned by the directory group and not the group of the user creating the file. The setgid flag is inherited by newly created subdirectories.
The setuid permission set on a directory is ignored on UNIX and Linux[citation needed] systems, but FreeBSD interprets it similarly to setgid, namely, all files and sub-directories are forced to be owned by the directory owner.[1]
The most common use of the sticky bit today is on directories, where, when set, items inside the directory can be renamed or deleted only by the item's owner, the directory's owner, or the superuser.
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 04:17 PM
тАО05-15-2007 04:17 PM
Re: setuid, setgid and sticky bit?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 10:12 AM
тАО05-21-2007 10:12 AM
Re: setuid, setgid and sticky bit?
The stickbit(t) in the directory protect the
user files inside the directory against the
deletion from other users or any type of intruders/hackers...
Setuid i don't think any significance for a directory. Normally the setuid permission allows the normal user to execute the files owned by the supersuer..
Any other clarifications !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 08:16 PM
тАО05-21-2007 08:16 PM
Re: setuid, setgid and sticky bit?
Thanx for your replies. Here is what I wrote:
" ... any file created by anyone with access to this directory, will have the group "users". And that files can only be deleted by their owner."
Any further comments? Anything technically/factually wrong with what I wrote?
I also wish to share a discovery. Copying files from elsewhere to this dir will result the copied file to have the directory's group. But moving will retain the file's original group. Is this known and intended behaviour? I ask because I have never seen any documentation or literature describing such.
Rgds,
Shahril