[Hudlug] file permissions in Samba
Anne Wilson
cannewilson at tiscali.co.uk
Thu Nov 20 18:56:42 GMT 2003
On Thursday 20 Nov 2003 5:25 pm, Tim wrote:
> Anne Wilson wrote:
> > I stand corrected. You are absolutely right. I don't use
> > create/directory mask in my smb.conf, but if it is there it will
> > be controlling it.
>
> The default value is:
> create mask = 0744
>
> (from the smb.conf man page)
>
> Of course, some vendors may patch Samba to provide a more secure
> 0700 default mask.
>
> >>[shared]
> >> path = /shared
> >> comment = Shared area
> >> writable = yes
> >> locking = yes
> >> force create mode = 0770
> >> force directory mode = 0770
> >> create mask = 0770
> >> directory mask = 0770
> >
> > What is the purpose of the two 'force' lines?
>
> It does exactly what it looks like. Files created by samba in this
> share will be given 0770 (group read/write/execute) permissions.
>
> Which lets other people in the group (set on the directory, with
> sticky bit) open the files and do things with them, and save them
> back again.
>
>
> Tim
>
Sorry, Tim, you've lost me. Surely create mask = 0770 does that?
Why do you need force create mode = 0770 ?
Anne
--
Registered Linux User No.293302
Have you visited http://twiki.mdklinuxfaq.org yet?
More information about the Hudlug
mailing list