If you are using Dapper, Brezzy or Hoary you may encounter similar problems when dealing with Win2k3 shares. I got the following error when trying to mount a share using smbfs:
# mount -t smbfs //server/share /mnt -o username=user
cli_negprot: SMB signing is mandatory and we have disabled it.
21041: protocol negotiation failed
SMB connection failed
This is because your smbfs version does not support the default Win 2k3 encryption scheme. There is a simple workaround:
# mount -t cifs //server/share /mnt -o username=user
This always works for me when mounting the share as root. I decided to automate the process so I created a following fstab entry:
//server/share /mnt cifs rw,user,noauto,username=user,password=pass 0 0
Now mounting still works great when I’m root, but whenever I try to do it as a user I get the following:
$ mount //dc01/Public
mount error 1 = Operation not permitted
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I solved one problem, but I found another. CIFS refuses to mount with user permissions. Any suggestions how to fix this?
Mookle Wilson posted this tip in the comments:
sudo chmod +s /sbin/mount.cifs
This should let you mount your cifs drives as a user.
[tags]smb, samba, windows, share, smbfs, cifs, linux, dapper[/tags]