- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Forums
Discussions
Discussions
Discussions
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
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-19-2001 10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 10:58 AM
09-19-2001 10:58 AM
Solutionthis will tell you what it is (search for sticky) - it is the "s" and "S" modes. It is set with chmod, see man on chmod with u+s, g+s, o+s options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 11:00 AM
09-19-2001 11:00 AM
Re: sticky bit
The sticky bit (sometimes called the sticky text bit) is the 1000 (octal) component of a files modes. To set the sticky bit on an executable, chmod 1755 a.out. Yiu can man chmod (2) for details. The idea behind is it that after a program has started, the 'text' - instructions portion of the program is retained in memory. If you have many users using a program like vi then setting the sticky bit makes the new load of the program mush faster. However, if you have many users
running vi, the text is already loaded and is shared by the users anyway. Here is the difference. Suppose I run vi with then sticky bit set, when I exit the text hangs around. The next launch of vi can immediately use that that text segment. However, if vi was already running the text could still be used by another process even without the sticky bit being set.
Hope this helps, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 11:02 AM
09-19-2001 11:02 AM
Re: sticky bit
Add or delete the save-text-image-on-file-
execution (sticky bit) permission. Useful only if u is expressed or implied in who. See chmod(2).
which basically translate into this:
If the sticky bit permissions is on for an executable, if the process is sharable, the process does not get flushed from memory after the last user terminate.
If the the bit is turned on for a directory, then only the owner of the file and root can delete files created in that directory.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 11:07 AM
09-19-2001 11:07 AM
Re: sticky bit
I suppose I should also cover the sticky bits meaning in a directory. In that case, only the owner of a file within that directory, the owner of the directory, or a user with approproiate privilieges can rm the file. The sticky bit for directories is set exactly the same way, chmod 1xxx mydir.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 11:11 AM
09-19-2001 11:11 AM
Re: sticky bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 11:18 AM
09-19-2001 11:18 AM
Re: sticky bit
-rwxr-xr-T
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 11:52 AM
09-19-2001 11:52 AM
Re: sticky bit
1) on a file: helps keeps portions of the program in memory to make it faster to run again.
2) on a directory: you must own the file in the directory in order to delete it.
3) on a link. This is called a transitional link which HP uses to bridge the gap between older 9.X programs and the latest OS. This can only be set with the program /opt/upgrade/tlinstall. /bin and /lib are examples of this.
And you see the sticky bit when an ls -l shows a "t" in the last position.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 12:01 PM
09-19-2001 12:01 PM
Re: sticky bit
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 12:06 PM
09-19-2001 12:06 PM
Re: sticky bit
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 01:21 PM
09-19-2001 01:21 PM
Re: sticky bit
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 01:27 PM
09-19-2001 01:27 PM
Re: sticky bit
I would say its good practice to set the sticky bit on those directories.
Just my 2 cents.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2001 02:19 PM
09-19-2001 02:19 PM
Re: sticky bit
Make sure you know which functionality you need before you set the bit.