[Samba] smb.conf setting for file permissions?

Mike Eggleston mikeegg1 at mac.com
Fri May 23 19:57:53 GMT 2008


On Fri, 23 May 2008, Jeremy Allison might have said:

> On Fri, May 23, 2008 at 02:44:45PM -0500, Mike Eggleston wrote:
> 
> > Yep, I did. Waste of bandwidth.
> 
> Not really :-). For this (older) version it looks like create mask
> is overriding the chmod. Try setting create mask to 0777 and see if
> this fixes it.
> 
> Jeremy.
> 
> > Mike
> > 
> > ------------------------------
> > [root at ishwar root]# testparm -s -v | egrep -i 'mask|force'
> > Load smb config files from /etc/samba/smb.conf
> > Processing section "[homes]"
> > Processing section "[ishwarhome]"
> > Processing section "[ishwar1]"
> > Processing section "[ishwar2]"
> > Processing section "[ishwar3]"
> > Processing section "[ishwar4]"
> > Processing section "[ishwarhtml]"
> > Loaded services file OK.
> > 	force user = 
> > 	force group = 
> > 	create mask = 0744
> > 	force create mode = 00
> > 	security mask = 0777
> > 	force security mode = 00
> > 	directory mask = 0755
> > 	force directory mode = 00
> > 	directory security mask = 0777
> > 	force directory security mode = 00
> > 	force unknown acl user = No
> > 	force printername = No
> > ------------------------------
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/listinfo/samba

Jeremy,

Thank you for the setting. Putting 'create mask' in the share seems to
work. By the name 'create' I expected the parameter only to work when
a file was created; not when a file was changed.

Mike


More information about the samba mailing list