4.0 likes s and S protections
Phil Hammar
jackal at munsell.UUCP
Tue Jan 24 07:47:40 AEST 1989
In article <801 at auspex.UUCP> auspex!guy at uunet.uu.net (Guy Harris) writes:
>X-Sun-Spots-Digest: Volume 7, Issue 98, message 8 of 13
>
>For files with mode, say, "rwsr-xr-x", you never could remove *just* the
>set-GID bit with "chmod 700"; "chmod g-s" is the right way to remove just
>the set-GID bit in every UNIX version since V7.
Alternatively, one could remove the {set-{UID,GID},sticky} bit with "chmod
0755" if one liked numbers better than letters. (This works under SunOS
3.4.)
Phil Hammar
Sys Admin for AES,
a division of EPPS,
a wholly owned subsidiary of Kodak Co
...!{harvard!adelie,bu-cs!encore}!munsell!jackal
[[ Yes but things changed under 4.0. Near as I can tell via
experimentation, "chmod" now treats directories as a special case. The
only way to turn off the setgid bit on a directory is via "chmod g-s ...".
I tried "chmod 0755" and it got the sticky bit but not the setgid bit,
although it works as expected for a plain file. --wnl ]]
More information about the Comp.sys.sun
mailing list