File permissions

Tim Allen timallen at ls82.fsnet.co.uk
Fri Nov 30 23:49:02 GMT 2001


Found the answer to this. Directory permissions were drwxrwxrwx. But to
ensure the x bits got set, need

force create mode = 0777

(default is 00)

Unix permissions = force_create_mode | (mapped_mode & create_mask)

The mapped_mode was 0666, not 0777.

Hope that explanation's right!

Tim Allen


> What are the permissions on the directory you are creating these files on?
> Joel
> On Fri, Nov 30, 2001 at 05:17:54PM -0000, Tim Allen wrote:
> > Hi everyone
> >
> > I'm trying to get my head around the way Samba sets file permissions.
I'm
> > running Samba 2.2.2 on RH7.1 and have a test setup with a few NT4
> > workstations.
> >
> > The relevant bit of smb.conf looks like this:
> >
> > [common]
> >   path = /shared/common
> >   read only = No
> >   create mask = 0777
> >   directory mask = 0777
> >   map archive = No
> >
> > (defaults for force create mode and security mask)
> >
> > Creating a file in the directory from an NT machine results in a file
with
> > permissions:
> >
> > -rw-rw-rw-
> >
> > Why aren't the x bits set?






More information about the samba mailing list