[Hudlug] file permissions in Samba
Anne Wilson
cannewilson at tiscali.co.uk
Thu Nov 20 16:09:18 GMT 2003
On Thursday 20 Nov 2003 9:16 am, Tim wrote:
> Simon Fox-Jones wrote:
> > Both users A and B are added to the group office and the
> > permisions
>
> were are
>
> > set so that the group is RWX on the file in question , yet each
> > time
>
> either
>
> > of the users uses the file they seem to take ownership and then
>
> change the
>
> > group permissions to R only, its very bizzare
>
> It will be the permissions mask in samba. Samba just follows what
> the filesystem does, but a permissions mask is applied to files.
> For instance, this makes it harder to accidently make world
> readable files in your home directory.
>
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.
> Also, a file which appears to be modified may actually have been
> deleted and recreated - hence the change in owner. Your access
> has to depend on group rather than owner.
>
>
> From my samba.conf
>
>
> [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?
Anne
--
Registered Linux User No.293302
Have you visited http://twiki.mdklinuxfaq.org yet?
More information about the Hudlug
mailing list