How about this (Another snip from the docs):
force directory mode (S)
This parameter specifies a set of UNIX mode bit permissions that will always
be set on a directory created by Samba. This is done by bitwise 'OR'ing
these bits onto the mode bits of a directory that is being created. The
default for this parameter is (in octal) 0000 which will not add any extra
permission bits to a created directory. This operation is done after the
mode mask in the parameter directory mask is applied.
See also the parameter directory mask for details on masking mode bits on
created directories.
See also the inherit permissions parameter.
Default: force directory mode = 000
Example: force directory mode = 0755
would force all created directories to have read and execute permissions set
for 'group' and 'other' as well as the read/write/execute bits
set for the
'user'.
HTH
Josh Konkol
-----Original Message-----
From: Ryan J Betz [mailto:ryanb@maumeepattern.com]
Sent: Wednesday, May 22, 2002 6:14 AM
To: Kohei Yoshida
Cc: Konkol, Josh; teilo@cdt.luth.se; samba@lists.samba.org
Subject: RE: [Samba] Controlling share create permissions
Unfortunatly, this causes all files to be created 0755 and directories 0777
when I use create mode = 0777 and directory mode = 0777.
Thanks,
Ryan
-----Original Message-----
From: Kohei Yoshida [mailto:kyoshida@mesco.com]
Sent: Tuesday, May 21, 2002 5:35 PM
To: Ryan J Betz
Cc: Konkol, Josh; teilo@cdt.luth.se; samba@lists.samba.org
Subject: RE: [Samba] Controlling share create permissions
Ryan,
This is just a guess, but you may want to look into 'create mode'
parameter. It defaults to 0744. Maybe you can change it to 0777 to see
what happens.
Kohei
On Tue, 2002-05-21 at 13:56, Ryan J Betz wrote:> Hrmm, maybe I have it configured wrong, or I simple don't understand a
> condition of this working:
>
> [log]
> path = /log
> browseable = yes
> writeable = yes
> require valid-user
> inherit permissions = yes
>
> [root@shield /log]# pwd
> /log
>
> I created the folder and chmod 777 folder1/
>
> drwxrwxrwx 3 logger logger 4096 May 21 13:50 .
> drwxr-xr-x 33 root root 4096 Mar 29 10:33 ..
> drwxrwxrwx 2 ryanb mail 4096 May 21 13:51 folder1
>
> I rolled over to the windows machine and created a new text file in
> /log/folder1/
>
> drwxrwxrwx 2 ryanb mail 4096 May 21 13:51 .
> drwxrwxrwx 3 logger logger 4096 May 21 13:50 ..
> -rwxr--r-- 1 ryanb mail 0 May 21 13:51 New Text
> Document.txt
>
> I made sure I restarted smbd and nmbd after I changed smb.conf. I'm
using
> version 2.2.3a if that means anything. Thanks a bunch for all the help.
>
> Regards,
> Ryan
>
> -----Original Message-----
> From: Konkol, Josh
> Sent: Tuesday, May 21, 2002 1:44 PM
> To: 'Ryan J Betz'; James Nord
> Cc: samba@lists.samba.org
> Subject: RE: [Samba] Controlling share create permissions
>
>
> From smb.conf.5.htm:
>
> inherit permissions (S)
> The permissions on new files and directories are normally governed by
create> mask, directory mask, force create mode and force directory mode but the
> boolean inherit permissions parameter overrides this.
>
> New directories inherit the mode of the parent directory, including bits
> such as setgid.
>
> New files inherit their read/write bits from the parent directory. Their
> execute bits continue to be determined by map archive , map hidden and map
> system as usual.
>
> Note that the setuid bit is never set via inheritance (the code explicitly
> prohibits this).
>
> This can be particularly useful on large systems with many users, perhaps
> several thousand, to allow a single [homes] share to be used flexibly by
> each user.
>
> See also create mask , directory mask, force create mode and force
directory> mode .
>
> Default: inherit permissions = no
>
>
> HTH
>
> Josh
>
> -----Original Message-----
> From: Ryan J Betz
> Sent: Tuesday, May 21, 2002 12:27 PM
> To: James Nord
> Cc: samba@lists.samba.org
> Subject: RE: [Samba] Controlling share create permissions
>
>
> I have looked around on google for information on inherit permissions and
> come up mostly dry. I can't find it in 'man smb.conf' either.
Am I
looking> in the wrong places? I would assume that if you set inherit permissions
> yes then files created in the share would inherit the permissions of the
> parent directory, which is what I was looking for. Thanks again for the
> help!
>
> Ryan
>
> >-----Original Message-----
> >
> >Ryan J Betz wrote:
> >
> >Is it possible to set default create permissions on certain directories
> >within a share? ie. Create files in the share [something] /folder1/ as
744> >but in /folder1/subfolder/ as 777. I thought of creating two shares
and
> >having the users manually go into the other share to save thier files,
but> >confusion ensued. Thanks for any help!
> >
> >>
> >>Look at inherit permissions.
> >>
> >>/James
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
--
Kohei Yoshida
Municipal Engineering Services Co., P.A.
1140 Benson Hwy, Suite 220
Garner, NC 27529
(919) 772-5393
kyoshida@mesco.com