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?
willem.botha at adticket.de wrote:> 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? > >In the credentials section of the entry in /etc/fstab, put in username=<whatever>,domain=<whatever>. Otherwise, change your authentication system to use Samba for your Linux clients as well.
willem.botha at adticket.de wrote:> I connect my Linux clients with a fstab entry: > //192.168.1.127/sharefiles /mnt/fileserver cifs > credentials=/home/.auth,rw,soft 0 0Here is an example from my server: //192.168.254.35/projects /mnt/engin cifs noperm,uid=enginuser,gid=Engineers,credentials=/root/creds 0 0 Does that help? -- Mark Nienberg Sent from an invalid address. Please reply to the group.
> Here is an example from my server: > //192.168.254.35/projects /mnt/engin cifs > noperm,uid=enginuser,gid=Engineers,credentials=/root/creds 0 0 > > Does that help?The param noperm seems to do the trick :D I left the uid and gid out, and even though my permissions in my KDE browsers is still false, it allows me to delete and copy files to the share.. I guess this is the default behaviour of Windows then. Thanks a million Mark :D