‘S’ = The directory’s setgid bit is set, but the execute bit isn’t set.

‘s’ = The directory’s setgid bit is set, and the execute bit is set.

SetGID = When another user creates a file or directory under such a setgid directory, the new file or directory will have its group set as the group of the directory’s owner, instead of the group of the user who creates it.

To remove the setGID bit:

chmod g-s eclipse/

Taken from man chmod:

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.

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.