[Samba] Samba4: s3fs sticky bit file ownership problem
rfs
rfs at arcor.de
Mon Jun 18 05:01:12 MDT 2012
Hi Steve,
i think you could do this with a 'force group' directive in the share.
[reports]
comment = reports
path = /sambashares/reports/
browseable = yes
public = no
writable = yes
# force user = ntadmin
# following line should force the group ownership
force group = staff
directory mask = 0770
create mask = 0660
write list = ntadmin @staff root
regards,
rfs
On 18.06.2012 12:13, steve wrote:
> Hi
> I want all files created in a share to be group owned by a group called
> staff. To do this I have a share called reports which is chmod g+s staff:
>
> drwxrws---+ 9 root staff 4096 Jun 18 11:15 reports
>
> If I create a file from Linux, the sticky bit works:
>
> -rw-rw----+ 1 steve2 staff 0 Jun 18 10:57 stevelinux.txt
>
> If I create it under windows, it doesn't:
>
> -rwxrwx---+ 1 steve2 Domain Users 0 Jun 18 11:15 stevewin7.txt
> -rwxrwx---+ 1 steve2 Domain Users 0 Jun 18 10:59 stevexp.txt
>
> The file takes on the group of the creator, Domain Users in this case.
>
> This is fine whilst the files stay inside the share as they are
> protected the directory being for staff only, but it becomes a problem
> when we need to move them around.
>
> There is also a group rw acl set but removing it makes no difference.
>
> Any ideas for a fix or workaround?
> Cheers,
> Steve
>
More information about the samba
mailing list