![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sticky Bit???? | skyineyes | UNIX for Dummies Questions & Answers | 10 | 05-29-2008 01:15 PM |
| Sticky Bit | teenu18 | UNIX for Dummies Questions & Answers | 3 | 12-17-2007 03:08 PM |
| sticky bit | manu.vmr | Shell Programming and Scripting | 2 | 02-02-2007 07:43 AM |
| Sticky Bit | rob11g | UNIX for Dummies Questions & Answers | 1 | 03-14-2005 04:51 PM |
| sticky bit?? | hedrict | UNIX for Dummies Questions & Answers | 2 | 02-05-2002 09:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
From what I understand, the "sticky" bit is only allowed to be set by a superuser via the chmod command. If set the "ls" format will show a "t" in the last position of the permissions.
The sticky bits purpose is to prevent a program from swapping out of of memory when not being used. Thus, the executable image of the program (file) stays in the "swap space" even when the program is NOT being executed. In effect, it would make the program run faster (no swapping to virtual memory involved). Since the program gets "stuck" (in the swap space) it's called "sticky mode" (controlled by the "sticky bit". Since swap space is usually at a premium (on most systems) you wouldn't want too many programs running in "sticky mode". I'm certainly not an expert, but the above is what I gathered through reading. Hope it helps. LY18 |
|
||||
|
I use HP-UX here at work and we use sticky bits to keep users from deleting other people's files in public directories. Like the /tmp directory for example . . . anybody can write to or delete from that folder . . . by adding a sticky bit to the folder's permsisions, we make sure no one can delete someone else's work.
|
|
|||||
|
Ok, this clears up the two different things I have read about this, but I was still wondering, does it serve a dual purpose? If set on an executable, it keeps the swapped information from being removed - If set on a text/data file, it keeps another user from removing the information...
I think I get it now. Thanks for the help, folks! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|