Can I use
chmod to change the permission from -rwsr-xr-x to -rwsr-sr-x?
migrated from serverfault.com Jul 19 '10 at 21:15
This question came from our site for professional system and network administrators.
chmod g+s <file>
You can also specify the full permissions of the file:
chmod 6755 <file>
This changes the permissions of the file to
In both cases, replace