[Samba] icacls 'DENY' and Unix user execute bit

Rowland Penny rpenny at samba.org
Sun Nov 21 19:37:09 UTC 2021


On Sun, 2021-11-21 at 14:13 -0500, Ken Bass via samba wrote:
> On 11/21/21 1:51 PM, Rowland Penny via samba wrote:
> > If you are mounting a share using mount.cifs, then you are not
> > using
> > Samba. If the mount is changing the permissions, you need to read
> > 'man
> > mount.cifs'. If another program is changing the permissions, then
> > you
> > need to ask that programs developers, just why it does this.
> > 
> > Rowland
> 
> So how does one access a share under Linux without using CIFS? Am I 
> missing something? Is there some other method?

I did not say that you cannot use cifs, I said that it isn't part of
Samba and if it is causing your problem, then Samba cannot fix it, I
would start by reading 'man mount.cifs'

> 
> As far as why a Linux program would change permissions, that is 
> simple... If under Linux, a file is deleted and recreated (for
> example 
> writing a file on exit), the created file is not going to get
> execution 
> permission, despite a users umask.

Are we talking about a program creating a temp file, then modifying the
temp file, then when you save it, it deletes the original file and then
renames the temp file to the original file ? If so, the new file should
get the same permissions as the original file, if it doesn't, then you
need to talk to whomever wrote the program.

If I locally modify a file in a share directory, close and save the
file, the permissions do not change.

Rowland





More information about the samba mailing list