views:

36

answers:

3

I have a directory that has rwxrwsr-x as its permissions and I need to set group to rwx. How can I do this on the command-line? I have root access.

+1  A: 

rwxrwsr-x means that the set group ID is set. You can turn off set GID by doing this:

chmod g-s [name]
Delan Azabani
Thanks - knew it had to be a simple one, but couldn't find the answer anywhere. You were fast!
amacbishop
A: 

sudo chmod g-s name

nkr1pt
A: 

chmod g-s <target> should be enough.

Michael Foukarakis