"umask 002" for Samba ?

Ed Wilts ewilts at ewilts.org
Wed Dec 8 15:45:19 UTC 2004


On Wed, Dec 08, 2004 at 10:41:45AM -0500, Reuben D. Budiardja wrote:
> 
> I have a directory (let's call it devel) that I want all the files and 
> directories under it to have 775 permission (readable and writable by owner 
> and group), so that I can just assign people under a group to have read/write 
> access to anything under that directory. So I set up the directory, chmod 775 
> it, and "chmod g+s devel". 
> 
> "devel" is also a samba shares, and people map it from their win machines. 
> This is where problem happens. When directory are created under 'devel' via 
> Samba, the permission is wrong. Group no longer has write access. The same fo 
> files. Any idea how I fix this ?

In smb.conf, add a share like the following:
[devel]
        comment = Shared devel area
        path = /home/devel
        writeable = Yes
        create mask = 02770
        directory mask = 02770
        inherit permissions = Yes

You'd probably want a mask of 02775.

        .../Ed
-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program




More information about the redhat-list mailing list