From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: Once a smb share is mounted as a user, it cannot be unmounted by that same user - local root privilage is required. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Add entry "//server/share /home/user/mountpoint smbfs noauto,user,rw 1 6" to /etc/fstab 2. As a mortal user, run "mount /home/user/mountpoint" 3. Enter the password matching the user on the sbb server at the Password: prompt. 4. Mount succeeded. 5. Run "umount /home/user/mountpoint" Actual Results: Error message: umount: only root can unmount //server/user from /home/user/mountpoint umount fails. Expected Results: Should have unmounted successfully. Additional info: Sure enough, when changing to the root user on "client machine" the umount works successfully.
Once the share is mounted, what are the /etc/mtab and /proc/partitions lines for the mount?
This behaviour occurs for samba-client-2.2.5-10 but is no longer apparent in samba-client-2.2.7-2 (dated Fri 22 Nov 2002), which was installed on Sun 01 Dec 2002 after his bug was submitted on 20 Oct 2002. The behaviour is now a failure once the mount is initiated by a user and the password is entered. The following message appears: smbmnt must be installed suid root for direct user mounts (500,500) smbmnt failed: 1 Running the command 'chmod u+s `which mount`' does not resolve the problem. Running the command 'chmod u+s `which smbmount`' generates error: libsmb based programs must *NOT* be setuid root. 18476: Connection to alive failed SMB connection failed .......but I guess that's a different bug really.
It looks like samba's smbmnt program isn't meant to securely handle this use case, so for now the only solution is to mount as root.