Re-2: [Samba] Permissions

martin at digconn.co.uk martin at digconn.co.uk
Thu Apr 25 01:04:03 GMT 2002


Thanks for the help.

I missed the line create mask = 

so permissions were reset every time a file was opened.



-------- Original Message --------
Subject: Re: [Samba] Permissions (24-Apr-2002 21:36)
From:    Joel at HammersHome.com
To:      martin at digconn.co.uk

> Post your smb.conf file for the share. You may have to use the:
> create mask (S)
>               A synonym for this parameter is create mode .
> 
>               When a file is created, the  necessary  permissions
>               are  calculated  according  to the mapping from DOS
>               modes to UNIX permissions, and the  resulting  UNIX
>               mode  is then bit-wise 'AND'ed with this parameter.
>               This parameter may be thought of as a bit-wise MASK
>               for  the UNIX modes of a file. Any bit not set here
>               will be removed from the modes set on a  file  when
>               it is created.
> 
>               The  default  value  of  this parameter removes the
>               'group' and 'other' write and execute bits from the
>               UNIX modes.
> 
> Note: The default behavior sounds like what you are seeing.
> Joel
> 
> On Wed, Apr 24, 2002 at 10:49:45AM +0000, martin at digconn.co.uk wrote:
> > Heeelllp,
> > 
> > I am strugling with permisions for Samba. I must have missed something.
> > 
> > I have chmod the parent folder.
> > I have set up a group and made all users part of the group.
> > I have set file permissions for everybody to access all files.
> > 
> > The problem I have is that each time someone opens a file the group write 
> > permissions are reset and nobody else can edit that file. If you go to the 
> > samba server and change the permissions anybody can open and edit the file 
> > and save but then noone else can write to it until the permissions are 
> > altered.
> > 
> > When you create a file it is created under the group but without group 
> > write access.
> > 
> > Have I missed a setting in smb.conf. How is one supposed the share files if 
> > other members of the group cannot access it.
> > 
> > Thanks
> > 
> > Martin


To: Joel at HammersHome.com
    samba at lists.samba.org





More information about the samba mailing list