Inherit Permissions in Samba
Hello,
I am trying to set up a file server using Samba on Redhat 8.0. Everything is working fine except inheriting group permissions. I want everything copied into the directory to default to the group assigned to the directory. I have this setup in my smb.conf file... [Share1] comment = Public Share path = /home/public browseable = yes writable = yes public = yes inherit permissions = yes directory mode = 0775 Some of the values were defaulted into the smb.conf file so I left them there. I'm not sure I need the directory mode, public, or writable attributes. Anyway, when I copy a file or new directory into the share, the group is always the users group. For instance... drwxrwxr-x 1 user user 1000 Oct 9 test.txt (where user is the user name and group name) I want it to instead automatically default to drwxrwxr-x 1 user public 1000 Oct 9 test.txt (where user is the user name and public is the inherited group name) I thought the "inherit permissions = yes" attribute would set this. Any thoughts? Thanks, Matt |
SetGID bit
I found a post that answered my question. The permissions for the top level directory needed to be 2775 in order to set the gid bit.
I ran the following command chmod -R 27775 /home/public and everything worked after that. Matt |
All times are GMT -5. The time now is 12:20 PM. |