10-23-04 07:47 AM
gazelle@yin.interaccess.com (Kenny McCormack) writes:
>According to "man chmod" on Solaris, "g+s" (aka, the 2000 bit) must be
>specified symbolically (that is as "g+s", not as 2000). And, indeed, my
>testing shows this to be the case. "chmod 2755 /some/dir" sets it to 755.
Absolute changes do not work for the set-group-ID bit of a
*directory*. You must use g+s or g-s.
>Questions
> 1) Why is this?
To make set-gid inheritance work for directories and prevent you
from accidentily removing it.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
[ Post a follow-up to this message ]
|