Re: "umask 002" for Samba ?

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

 



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@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux