Results 1 to 6 of 6

Thread: sticky bit cannot be taken off?

  1. #1
    Join Date
    Aug 2007
    Beans
    53

    sticky bit cannot be taken off?

    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)?

  2. #2
    Join Date
    Aug 2007
    Beans
    53

    Re: sticky bit cannot be taken off?

    nobody?

  3. #3
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: sticky bit cannot be taken off?

    It works for me. I can set the sticky bit and later remove it. Not sure what your problem is.

  4. #4
    Join Date
    Apr 2008
    Beans
    26

    Re: sticky bit cannot be taken off?

    try

    sudo chmod g-s a

  5. #5
    Join Date
    Aug 2007
    Beans
    53

    Re: sticky bit cannot be taken off?

    Quote Originally Posted by deadball View Post
    try

    sudo chmod g-s a
    woohoo yeah, that worked! was expecting '0750' to work, though. Any idea why it doesn't?

  6. #6
    Join Date
    Mar 2011
    Beans
    4

    Re: sticky bit cannot be taken off?

    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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •