[CentOS] Samba and file permissions

Bowie Bailey Bowie_Bailey at BUC.com
Mon Jul 12 15:44:24 UTC 2010


 On 7/12/2010 11:33 AM, Todd Cary wrote:
> Rob -
>
> I assume this is where I need to list all users and set the
> permissions as specified.  Also, I do not find an entry for "directory
> mask".
>
> # The following two entries demonstrate how to share a directory so
> that two
> # users can place files there that will be owned by the specific
> users. In this
> # setup, the directory should be writable by both users and should
> have the
> # sticky bit set on it to prevent abuse. Obviously this could be
> extended to
> # as many users as required.
> ;[myshare]
> ;   comment = Mary's and Fred's stuff
> ;   path = /usr/somewhere/shared
> ;   valid users = mary fred
> ;   public = no
> ;   writable = yes
> ;   printable = no
> ;   create mask = 0765

The samples do not list every possible option -- just the common ones. 
There is lots of good configuration info in the man page.  Here is a web
version:

http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html

-- 
Bowie



More information about the CentOS mailing list