SUMMARY STICKY BIT

From: Michael P. O'boyle (moboyle@lonestar.utsa.edu)
Date: Mon Apr 12 1993 - 22:31:01 CDT


>During a recent attempt to restore an accidently deleted
>mail message, a restore from tape of the spool directory
>was preformed.
>
>This resulted in a loss of one of the sticky bits.
>I had to use chmod o+x to give execute perms to others,
>but I am unable to turn on the sticky bit (chmod o+t doesnt work)
>
>How does one activate the sticky bit?

SELECTED RESPONSES

1)

You could use the octal mode: chmod 1777 /var/spool/mail. The leading
'1' turns on the sticky bit.

--
Jim Davis               | "I don't want him crushed -- just slightly dented."
jdavis@cs.arizona.edu   |   -- Clarissa Darling
Use either "chmod +t" or "chmod 1xxx" where xxx is the normal
absolute permissions (eg, 755 for rwxr-xr-x).

2)

As seen in the absolute mode, the sticky bit isn't part of the others permissions, but rather a part of a triple which includes setuid and setgid. Each of these bits affects the entire file, not a specific set of permissions. They are shown within the permissions for user, group, and others in an 'ls -l' merely as shorthand. That's why "chmod o+t" doesn't work.

----- David Willard (willard@hvsun1.mdc.com) Unix Systems Analyst Programmer, McDonnell Douglas Aerospace Huntsville, AL

MANY THANKS TO ALL WHO RESPONDED

N 1 receda@chj401.SINet.SLB.COM Wed Apr 7 04:17 44/1540 Stidky Bit N 2 geertj@ica.philips.nl Wed Apr 7 05:42 22/817 N 3 se@comp.lancs.ac.uk Wed Apr 7 06:39 28/833 Re: Sticky Bit N 4 willard@hvsun40.mdc.com Wed Apr 7 07:45 40/1617 Re: Sticky Bit N 5 mikem@ll.mit.edu Wed Apr 7 08:29 27/980 Re: Sticky Bit N 6 cdh@eng.cam.ac.uk Wed Apr 7 09:53 27/889 Re: Sticky Bit N 7 jdavis@cs.arizona.edu Wed Apr 7 09:54 40/1494 Re: Sticky Bit N 8 brenda Wed Apr 7 12:29 25/825 net N 9 lct@ai.mit.edu Wed Apr 7 12:32 21/964 Re: Sticky Bit rea@

Mike



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:44 CDT