Hi, I have this webroot /webdir/ with 2775 permission so that any created file/directory by apache inside of /webdir/ will be 'users:webusers'. However, I noticed when the apache created a new files (fileB) / directories (dirB), the ownership becomes 'apache:apache' and the sgid has gone for /webdir/ (drwxrwxr-x). I'm currently using Wordpress. [before] drwxrwsr-x users webusers /webdir/ drwxrwsr-x users webusers /webdir/dirA -rw-rw-r-- users webusers /webdir/fileA [after] drwxrwxr-x users webusers /webdir/ drwxrwxr-x apache apache /webdir/dirB -rw-rw-r-- apache apache /webdir/fileB Why the sgid bit doesn't reflected and the group as well? Has anyone knows how to fix this? Thanks. Regards, James -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100903/6287070b/attachment-0001.html>
On 9/3/10, James Corteciano <james at linux-source.org> wrote:> Hi, > > I have this webroot /webdir/ with 2775 permission so that any created > file/directory by apache inside of /webdir/ will be 'users:webusers'. > However, I noticed when the apache created a new files (fileB) / directories > (dirB), the ownership becomes 'apache:apache' and the sgid has gone for > /webdir/ (drwxrwxr-x). I'm currently using Wordpress. > > [before] > drwxrwsr-x users webusers /webdir/ > drwxrwsr-x users webusers /webdir/dirA > -rw-rw-r-- users webusers /webdir/fileA > > [after] > drwxrwxr-x users webusers /webdir/ > drwxrwxr-x apache apache /webdir/dirB > -rw-rw-r-- apache apache /webdir/fileB > > Why the sgid bit doesn't reflected and the group as well? Has anyone knows > how to fix this?I'm not sure why it doesn't work but I believe you can use acl to better achieve what you need to do.
Maybe Matching Threads
- deleting remote dirs I no longer want to backup
- ncluding backgroundrb issue
- mount.cifs is not working (smbclient does work), somekind of recursive content in mount-dir
- need help: about remove space
- Help with correct text file syntax EXCLUDE/INCLUDE + OPTION