[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: "umask 002" for Samba ?

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:
        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 Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts ewilts org
Member #1, Red Hat Community Ambassador Program

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]