[linux-cifs-client] Re: Inconsistent permissions on creation

simo idra at samba.org
Fri Oct 27 21:20:43 GMT 2006


On Fri, 2006-10-27 at 17:08 +0200, Ohad Lutzky wrote:
> > Presumably wget is setting the attributes explicitly after file create
> >
> > Watching the output of "strace touch newfile"
> > touch seems to create files with mode 0666, which due to your umask
> > would end up with:
> >
> >     0666 & 0744 = 0644
> >
> > if you had a create mask in smb.conf of 0766 wouldn't that give what you
> > want?
> 
> No, it wouldn't - wgotten files would still have executable
> permissions on by default. touch is behaving correctly as far as I'm
> concerned - it's wget I don't like.
> 
> Once again - setting it to 766 would have wget set the mode to 766 or
> 744, when I actually want 644. However, setting it to 644 would mean
> that NO file can be made executable, which I don't want.

So do you have a different behavior of wget when run on a local
filesystem than when it is run on a CIFS one?

If so than we have a bug or at least a feature request.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the linux-cifs-client mailing list