[Samba] Inherited permissions problem

Ryan J Betz ryanb at maumeepattern.com
Mon Jun 3 10:02:37 GMT 2002

I guess I should have probably left those mask parameters out of my example.
All I want to happen is if I have a folder which is 0777, and a file is
created in it, it is also 0777.  If the folder is 0744, so are created
files.  If I set force create mode = 0755, all files everywhere are created
like that.  If I have a folder that is 0700, inherit permissions = yes, and
force create mode = 0755, the files created in the folder are 0755, whereas
I want them to be 0700.  Maybe I'm just confusing myself :)  Thanks again
for all the help!

Ryan J Betz

-----Original Message-----
From: Konkol, Josh
Sent: Monday, June 03, 2002 12:47 PM
To: 'Ryan J Betz'; samba at lists.samba.org
Subject: RE: [Samba] Inherited permissions problem


I think you want force create mode:

force create mode (S)
This parameter specifies a set of UNIX mode bit permissions that will always
be set on a file created by Samba. This is done by bitwise 'OR'ing these
bits onto the mode bits of a file that is being created or having its
permissions changed. The default for this parameter is (in octal) 000. The
modes in this parameter are bitwise 'OR'ed onto the file mode after the mask
set in the create mask parameter is applied.

See also the parameter create mask for details on masking mode bits on

See also the inherit permissions parameter.

Default: force create mode = 000

Example: force create mode = 0755

would force all created files to have read and execute permissions set for
'group' and 'other' as well as the read/write/execute bits set for the



-----Original Message-----
From: Ryan J Betz
Sent: Monday, June 03, 2002 8:07 AM
To: samba at lists.samba.org
Subject: [Samba] Inherited permissions problem

I am attempting to set up an inherited permissions share and cannot get it
to work.

    path = /log
    writeable = yes
    directory mask = 0755
    create mask = 0755
    inherit permissions = yes
    guest ok = no
    public = yes

I have tried many different combinations of settings to no avail, such as
removing the create and directory masks.  I may also be misunderstanding the
function.  From what I have read, if there is a folder within this share
with permissions of 0777, all files created within that folder should be
0777 as well.  There is one folder within a share that I want files created
to be 0777, and I figured this was the best way to do this.  Please feel
free to correct me if I am mistaken.  I am running samba version 2.2.3a.

Ryan J Betz

To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list