[Samba] chown destroys ACLs

Harry Jede walk2sun at arcor.de
Wed Jul 16 02:43:17 MDT 2014


On 10:31:58 wrote Klaus Hartnegg:
> Hi,
> 
> Is it normal that "chown $user $file" and "chown :$group $file"
> destroy the Windows-ACLs?
According to your settings, yes.

> Is it normal that changing the file owner in Windows does not change
> the file owner in Linux, but changing the file owner in Linux does
> change the file owner in Windows?
According to your settings, yes.

> This should be mentioned in
> 
> > https://wiki.samba.org/index.php/Setup_and_configure_file_shares_wi
> > th_Windows_ACLs
I agree.

> I'm using samba 4.1.6 of Ubuntu 14.04 with "server role = classic
> primary domain controller". File system is ext4, it is mounted with
> options acl,user_xattr, and the file smb.conf does contain the three
> entries
> fs objects = acl_xattr
Remove this setting and try again.
read man vfs_acl_xattr

Or follow this page:
https://wiki.samba.org/index.php/Setup_and_configure_file_shares_with_POSIX_ACLs

> map acl inherit = Yes
> store dos attributes = Yes
> 
> thanks,
> Klaus


-- 

Regards
	Harry Jede


More information about the samba mailing list