Note:sau1 is a normal AD user from asmb.test, but it is not a member of group "asmb\sag1", the machine joined to asmb.test domain. asmb\sag1'gid is 10001 Edit smb.conf, then set "force group = +asmb\sag1" for samba share named samba-test ===================================================================== [samba-test] path = /samba-test public = yes force create mode = 0775 force directory mode = 0775 force group = asmb\sag1 writable = yes ===================================================================== 3. Access samba share via "sbu1",and create a directory named "test" ===================================================================== [root@rhel57v3 samba]# smbclient -U 'lovesmb\sbu1'%'pas$word' //10.100.60.34/samba-test smb: \> mkdir test ===================================================================== 4. Go to "samba-test", check the directory' attribute which is created in step#3 ===================================================================== [root@rhel57v3 samba-test]# ls -al total 32 drwxrwxrwx 4 root root 4096 Oct 11 13:43 . drwxr-xr-x 26 root root 4096 Oct 11 13:40 .. drwxrwxr-x 2 sac2 sag1 4096 Oct 11 13:43 samba drwxrwxr-x 2 sbu1 1008 4096 Oct 11 13:42 test <-------This is unexpected, directory's group should be "sag1",not 1008.
(In reply to comment #0) > Note:sau1 is a normal AD user from asmb.test, but it is not a member of group > "asmb\sag1", the machine joined to asmb.test domain. asmb\sag1'gid is 10001 > Edit smb.conf, then set "force group = +asmb\sag1" for samba share named > samba-test > ===================================================================== > [samba-test] > path = /samba-test > public = yes > force create mode = 0775 > force directory mode = 0775 > force group = asmb\sag1 > writable = yes > ===================================================================== > 3. Access samba share via "sbu1",and create a directory named "test" > ===================================================================== > [root@rhel57v3 samba]# smbclient -U 'lovesmb\sbu1'%'pas$word' > //10.100.60.34/samba-test > smb: \> mkdir test > ===================================================================== > 4. Go to "samba-test", check the directory' attribute which is created in > step#3 > ===================================================================== > [root@rhel57v3 samba-test]# ls -al > total 32 > drwxrwxrwx 4 root root 4096 Oct 11 13:43 . > drwxr-xr-x 26 root root 4096 Oct 11 13:40 .. > drwxrwxr-x 2 sac2 sag1 4096 Oct 11 13:43 samba > drwxrwxr-x 2 sbu1 1008 4096 Oct 11 13:42 test <-------This is unexpected, > directory's group should be "sag1",not 1008. tiny change step 3, we use "sau1" to access samba share not "sbu1" as: Access samba share via "sau1",and create a directory named "test" [root@rhel57v3 samba]# smbclient -U sab1%password //10.100.60.34/samba-test smb: \> mkdir test
*** This bug has been marked as a duplicate of bug 9288 ***