[Samba] Simple CIFS Linux permission

willem.botha at adticket.de willem.botha at adticket.de
Wed Sep 2 02:46:22 MDT 2009


Greetings all,

I have a VERY basic fileserver in my network, that works well for my
needs, and have run into a problem that I can't solve. I am sure that the
more eperienced users here will be able to help me in less than 5 minutes,
so please, if you have some time.

My smb.conf
[global]
        workgroup = msheimnetz
        server string = Samba Server Version %v
        netbios name = fileserver
        log file = /var/log/samba/%m.log
        max log size = 50
        wins support = yes
        printcap name = CUPS
        printing = CUPS
        map to guest = nobody
        security = user
        passdb backend = tdbsam
#============================ Share Definitions
[sharefiles]
        comment = Server Files
        path = /var/samba/public/sharefiles
        public = Yes
        readonly = No
        writeable = Yes
        follow symlinks = Yes
        wide links = Yes
        create mask = 0775
        force user = fileserver
        force group = fileserver
        guest ok = Yes
        valid users = fileserver
        nt acl support = No

My windows clients all connect to this share 100% and read/write to it :)

My Linux clients seems to map the remote uid to the local uid.

Now if your current local uid is the same as the remote uid, then you also
can write perfectly to the fileserver, but if your local uid is not...
Well then you have permission problem.

I connect my Linux clients with a fstab entry:
//192.168.1.127/sharefiles   /mnt/fileserver              cifs   
credentials=/home/.auth,rw,soft  0 0

The connection works fine on boot.

How do I map this remote uid to the local uid?



More information about the samba mailing list