I have a Windows XP laptop on which I have some shares which I access from my Linux desktop machine. At the moment I'm unable to mount the shares as any other user than root.
First, a bit of background. I've got the following mount-point defined in /etc/fstab:
Code:
//cchqdave/c$ /mnt/laptop smbfs user,credentials=/home/david/.smbpasswd,rw,noauto 0 0
If I try to mount this mount-point as myself (an unprivileged user), I get an error:
Code:
[david@malvern ~]$ mount /mnt/laptop
smbmnt must be installed suid root for direct user mounts (501,501)
smbmnt failed: 1
So I took the suggestion and made smbmount setuid root:
Code:
[david@malvern ~]$ sudo chmod u+s `which smbmount`
And tried mounting it again:
Code:
[david@malvern ~]$ mount /mnt/laptop
libsmb based programs must *NOT* be setuid root.
12687: Connection to cchqdave failed
SMB connection failed
Which is weird. Anyone got any suggestions? I really don't want to have to do
sudo mount /mnt/laptop every time. It's probably worth mentioning if I do do
sudo mount /mnt/laptop then it works fine and I can access my shares without any problems - I just don't like having to stick in the sudo password every time because it's a pain.