[Samba] Controlling share create permissions
Kohei Yoshida
kyoshida at mesco.com
Tue May 21 14:42:02 GMT 2002
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 at 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 at 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 at 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 at mesco.com
More information about the samba
mailing list