PDA

View Full Version : [ubuntu] sticky bit cannot be taken off?



jf/
January 29th, 2009, 11:07 AM
Not too sure what's happening here, but why, and what is causing this for ubuntu:

# chmod 2750 a
# ls -l
drwxr-s--- 2 j j 6 2009-01-29 18:04 a
# chmod 0750 a
drwxr-s--- 2 j j 6 2009-01-29 18:04 a


It seems like once the sticky bit is set, there's no way to remove it, except to remove the directory itself (and start all over)?

jf/
January 30th, 2009, 08:34 AM
nobody?

capscrew
January 30th, 2009, 09:09 AM
It works for me. I can set the sticky bit and later remove it. Not sure what your problem is.

deadball
January 30th, 2009, 11:36 AM
try

sudo chmod g-s a

jf/
February 6th, 2009, 05:27 AM
try

sudo chmod g-s a

woohoo yeah, that worked! was expecting '0750' to work, though. Any idea why it doesn't?

laughing-boy
March 30th, 2011, 03:47 PM
You can set or clear the bits with symbolic modes like u+s and g-s, and you can set (but not clear) the bits with a numeric mode.