[Samba] Permissions not inherited when moving a file

L.P.H. van Belle belle at bazuin.nl
Tue Aug 6 15:43:49 UTC 2019


And 

Try these, test this first.. 

1770	creator owner 
3770	creator group
4770	creator owner+group 

So i would set this. 
create mask = 4660
force create mode = 4660
directory mask = 4770
force directory mode = 4770

ps. I dont like exec rights on regular files that why you see 4660  for the files.
But you can set 4770.. 


> 
> Beside the fact that we can't use Windows ACLs because we 
> need the posix 
> acls for a different service,

No it not a need, use getfacl and setfacl.
And you can add an extra group if needed for example.  


Greetz, 

Louis
(gone home)
 

> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Rowland penny via samba
> Verzonden: dinsdag 6 augustus 2019 17:19
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Permissions not inherited when moving a file
> 
> On 06/08/2019 15:36, Sören Busse via samba wrote:
> > Thank you very much for your reply.
> >
> > Beside the fact that we can't use Windows ACLs because we need the 
> > posix acls for a different service,
> What service ??
> >
> > are you sure, that Windows ACLs would fix this issue? The 
> ntacls are 
> > stored in the xattr of the file itself. When you now move 
> the file to 
> > a different location the xattr should stay the same and the 
> user still 
> > doesn't have the right permissions to that file.
> >
> > Aren't there any other solutions when using Posix ACLs?
> 
> I just realised that you have something missing from smb.conf:
> 
>      vfs objects = acl_xattr
>      map acl inherit = Yes
>      store dos attributes = Yes
> 
> Rowland
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list