![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sticky Bit???? | skyineyes | UNIX for Dummies Questions & Answers | 10 | 05-29-2008 10:15 AM |
| Sticky Bit | teenu18 | UNIX for Dummies Questions & Answers | 3 | 12-17-2007 11:08 AM |
| sticky bit | manu.vmr | Shell Programming and Scripting | 2 | 02-02-2007 03:43 AM |
| Sticky Bit | rob11g | UNIX for Dummies Questions & Answers | 1 | 03-14-2005 12:51 PM |
| sticky bit?? | hedrict | UNIX for Dummies Questions & Answers | 2 | 02-05-2002 05:04 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
|||
|
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! |
||||
| Google The UNIX and Linux Forums |