[Samba] File permissions and Unix umask.

Gerry Marthe gmarthe at lateralplains.com
Thu Oct 9 00:18:49 GMT 2008


Hi Jeremy,

Thanks - that does make sense.
Can you tell me then why "/bin/touch" appears immune to the Samba
settings?

Gerry.



On Wed, 2008-10-08 at 11:48 -0700, Jeremy Allison wrote:
> On Thu, Oct 09, 2008 at 12:58:41AM +1100, Gerry Marthe wrote:
> > 
> > The relevant section from smb.conf on the samba server is:
> > 
> > [common]
> >         comment = Common Area
> >         path = /common
> >         read only = no
> >         valid users = @users
> >         create mask = 0660
> >         force create mode = 0660
> >         force directory mode = 775
> >         write list = @users
> >         force group = users
> >         directory mask = 0775
> > 
> > The share is mounted on a Linux system with the following command:
> > 
> > mount.cifs //localhost/common /mnt/smb -o
> > rw,uid=600,gid=504,user=abdv29,password=*******
> > 
> > >From what I have understood of the samba documentation, the various file
> > creation masks specified
> > by Samba do not override a client umask.
> 
> You understood wrong. The server setting override all client
> requests. That's why they're *force* create mode.
> 
> Jeremy.
> 
> 
> ------------------------------------------------------------ 
> 
> This message has been scanned for viruses and dangerous content 
> by MailScanner and is believed to be clean.
> 



------------------------------------------------------------ 

This message has been scanned for viruses and dangerous content 
by MailScanner and is believed to be clean.



More information about the samba mailing list