-----Original Message-----
From: John Andersen [mailto:jsamyth@gmail.com]
Sent: Tuesday, May 06, 2008 11:41 AM
Cc: Suse-Linux-E (E-mail)
Subject: Re: [opensuse] smbfs vs. cifs mounts to samba shares
On Tue, May 6, 2008 at 11:26 AM, James D. Parra
Hello,
I have a Samba share on a host server that when mounting via smbfs the users on the client machine can read and write to the dir's in the mount, however when mounting it via cifs everyone gets permission denied errors. The Samba host server has the same usernames & passwords as the client machine. Examples in /etc/fstab below;
<snip> //sambahost/ftp /mnt/ftp cifs
credentials=/etc/cifsusers/user1,domain=sales,file_mode=0777,dir_mode=0777,r
w 0 0 *****premission denied errors with cifs*****
//sambahost/ftp /mnt/ftp smbfs workgroup=sales,username=user1,password=aword,fmask=777,dmask=777 0 0 *****everything works with smbfs***** <snip>
I would prefer to use cifs and utilize the credentials files. When connecting via cifs, the user in the credentials file also gets the permission denied error.
How can I get cifs mounts to work with a Samba share?
Thank you in advance.
As Peter responded, you need noacl, noperm in the client machine fstab. Without these, the client tries to manage permissions on the server, even tho the server may well have different UID and GID than the client. So Bob at the client may be UID 1000 but the same Bob has uid 1368 on the server side. Unless and until you match UID/GID across the network (don't even go there) this will never work. (I can't imagine it ever working unless you used kreberos for login or something). The noacl, noperm parameters tells the client side to let the server side handle setting/checking of permissions and ownership, which is what you want for a samba server, the way its always been, and the only way that really works for most environments. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Actually, the usernames and group IDs are identical across workstations & servers. This makes nfs mounts easier to manage. Even with IDs matching up, cifs mounts would get errors. The noacl & noperm options fixed the problem. Thanks again, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org