sgid bit is not inherited by few directories
OS : RHEL 7.2 64 bit
I have set the SGID bit on the parent directory using the command :
chmod 2775 <directory name>
Then I installed a tomcat based application on that directory (Just by unzipping the software zip file.. no other step).
However, some folder created during the unzipping process (and some directories may have been created afterwards by the application) did not inherit the SGID bit. (So, all the files under such directories were created with the default group, which is not correct).
But, Most of the directory got the Sgid bit from the parent directory, but few did not.
Has anyone faced this problem before? Any idea, what could have caused it?
Last edited by suchitpati; 10-11-2016 at 03:30 PM.
Reason: Add the chmod command.
|