[Samba] Simple CIFS Linux permission
Willem P. Botha
willem.botha at adticket.de
Wed Sep 2 04:44:43 MDT 2009
> 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
>Otherwise, change your authentication system to use Samba for your
>Linux clients as well.
Gary, I tried adding the username=fileserver,domain=msheimnetz but it
has no effect.
I am a bit confused, as the "credentials=/home/.auth" file already
contains this info, and it connect 100% with no username password
If I can explain it better:
I can connect to the share, read the files, and even copy them, but can
not save them. If I view the permissions the files are listed as
belonging to admin(UID 501 on local machine) and it should say
fileserver(UID 501 on remote machine). The current user in this case is
user5(UID 507 on local machine)
Thus no matter what I do I keep getting the problem that the users can't
save the files, cause the UID mapping is not made.
Is there not a way to tell Samba that files belong to the remote UID
rather than the local UID. And if I authenticate as the remote user, why
is the local UID being used when writing?
All I actually need is a common shared fileserver. No fancy rights, or
anything, just a shared network drive that everyone can use to save
documents, no permissions required really. Maybe I am going about this
the wrong way.
Thanks for the reply :)
More information about the samba