[Samba] cifs mount creates files with root:root permissions

steve steve at steve-ss.com
Wed Oct 12 01:42:21 MDT 2011


I mount this share on a client:

[users]
        comment = home folders
        inherit acls = Yes
	inherit permissions = Yes
        path = /home
        read only = No

using this as root on the client:

mount -t cifs //192.168.1.2/users /home -o rw,nosetuid

I then login as a user on the client authenticated via ldap. No problem. It 
takes me to the mounted folder and I can see my files. When I create a file it 
creates it as owner root:root. Not what I want!

How can I create files on the mount as user:group no matter who logs in?
Thanks. Steve.


More information about the samba mailing list