0
I'm used to setting up SGID on a directory
chmod -R g+s example
and then
chmdo -R 750 example
And have the directory and all sub-directories preserve the set-group-ID. On CentOS SGID gets overridden by the second command.
The OS is CentOS release 5.6 (Final)
In theory, and like it says on this page, "if commands like chmod routinely cleared these bits on directories, the mechanisms would be less convenient..." and it's exactly whats happening. chmod -R 750
is effectivelly removing the SGID.
How can I make g+s
permanent?
setgid and sticky are two different things. – Ignacio Vazquez-Abrams – 2011-06-13T00:46:36.273
@Ignacio, gonna look it deeper. Right now just corrected it so other's don't get confused. Thanks! – Frankie – 2011-06-13T00:51:37.127