STICKY BIT
2007-12-25 8:12:00
>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
Comments
Got something to say?
You must be logged in to post a comment.

