HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sticky Bit
Operating System - HP-UX
1832433
Members
3174
Online
110042
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
04-19-2004 11:52 PM
04-19-2004 11:52 PM
I understand how to set the 'group' stickt bit to force all files created under this directory to have the same ownership as the parent droup name. (chmod g+s 'filename')
My question is, is there an option to use the sticky bit for the owner instead of the group?
I want all files created under a certain directory to inherit the ownership of the dir.
10x
RPM
My question is, is there an option to use the sticky bit for the owner instead of the group?
I want all files created under a certain directory to inherit the ownership of the dir.
10x
RPM
UNIX IS GOOD
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:58 PM
04-19-2004 11:58 PM
Re: Sticky Bit
setting the sticky bit for the owner has a different meaning. It says only the owner of the file within the directory can delete/change mode of the file.
I don't know of a way that you can force the owner to be a particular user underneath a directory and feel sure there is a security risk in there somewhere.
I don't know of a way that you can force the owner to be a particular user underneath a directory and feel sure there is a security risk in there somewhere.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 12:05 AM
04-20-2004 12:05 AM
Re: Sticky Bit
setgid or setuid is not for that. Instead, you can set umask so that files created get the perms you want.
umask of 022 will gives perms as follows.
umask 022
touch aa
ll aa
-rw-r--r--
Anil
umask of 022 will gives perms as follows.
umask 022
touch aa
ll aa
-rw-r--r--
Anil
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 01:46 AM
04-20-2004 01:46 AM
Solution
Here is a short description:
4xxx SETUID
2xxx SETGID
1xxx STICKY BIT
They add-up, so 6xxx is SETUID and SETGID
A filesystem with a STICKY BIT set, would prevent a user to delete a file for which he doesn't have write permission.
Sticky bit has two meanings
Sticky bit on executables -> As the names implies it is sticky. It will keep the process's text in memory so that when the next time it is run, it's text doesn't have to be read from the disk again.
Sticky bit on directories -> files in them can only be deleted by the owner even if the directory carries universal write permissions.
man chmod for more info.
Rgds...Geoff
4xxx SETUID
2xxx SETGID
1xxx STICKY BIT
They add-up, so 6xxx is SETUID and SETGID
A filesystem with a STICKY BIT set, would prevent a user to delete a file for which he doesn't have write permission.
Sticky bit has two meanings
Sticky bit on executables -> As the names implies it is sticky. It will keep the process's text in memory so that when the next time it is run, it's text doesn't have to be read from the disk again.
Sticky bit on directories -> files in them can only be deleted by the owner even if the directory carries universal write permissions.
man chmod for more info.
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP