On Wed, 2013-07-24 at 22:34 -0400, Ryan Bair wrote:> I'm running Samba 4.0.7 on CentOS 6.4 as a AD DC with s3fs.
>
> I have a shared directory with the setgid bit set. From the shell on the
> server, new files and directories inherit the group as expected. However,
> new items created through samba get the user's primary group instead.
>
> Config for the share is super simple:
>
> [test]
> path = /srv/test
> read only = no
>
>
> Sounds like a bug. Has any one else experienced this?
Hi
openSUSE 12.3 DC 4.0.7 also tested with latest git
Not sure what /srv/test has but am guessing that you have set chmod g+s?
If so, I can reproduce what you see. The g+s is ignored when accessed on
a cifs mounted share and instead the primaryGroupID is used.
Cheers,
Steve