[Samba] chown destroys ACLs

Jeremy Allison jra at samba.org
Tue Jul 15 10:44:20 MDT 2014


On Tue, Jul 15, 2014 at 02:24:20PM +0200, Klaus Hartnegg wrote:
> Hi,
> 
> Is it normal that "chown $user $file" and "chown :$group $file"
> destroy the Windows-ACLs?

If the hash of the Windows + POSIX ACL changes, the stored
Windows ACL will get tossed, so yes - it is.

> 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?

chown from a Windows client will only succeed if you're accessing
as root - so no, it usually won't change the file owner on the Linux
filesystem. If you are local root and change the owner then yes
it will be reflected in the Windows ownership. See hash comment
above.

Jeremy.


More information about the samba mailing list