umount cifs sharemount with user or users in /etc/fstab arguments doesn't work any more

Bug #661025 reported by themroc
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
cifs-utils
Fix Released
Unknown
cifs-utils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cifs-utils

A samba share mounted as normal user, can no longer umount as normal user, although the /etc/fstab argument "user" or "users" is set.

Here some examples for a share in /etc/fstab (~ means /home/user/):
//share ~/mountpoint cifs users,noauto,credentials=~/.credentials,iocharset=utf8,uid=1000,gid=1000 0 0
or
//share ~/mountpoint cifs users,noauto,credentials=~/.credentials,iocharset=utf8 0 0
or
//share ~/mountpoint cifs user,noauto,credentials=~/.credentials,iocharset=utf8 0 0

This shares are mountable as normal user, but when I try to umount as normal user I receive this German error message:
umount: ~/mountpoint mount und fstab stimmen nicht überein
which means:
umount: ~/mountpoint mount and fstab are not the same (or are not similar)

umount as root is successful and produce no error message.

Revision history for this message
themroc (rauchweihe) wrote :

I forgot to say:
Kubuntu 10.10 64bit.

Revision history for this message
Max-Ulrich Farber (maxulrichfarber) wrote :

The same problem in Ubuntu 10.10, 32bit.

Revision history for this message
Daniel Muller (daniel-muller) wrote :

Same problem in Ubuntu 10.10, 64bit.
When mounting from the console (as user), no problem. Umounting only as root.
When mounting from gnome shortcuts menu, the pop-up error appears: "Timeout waiting for mount to appear". No disk-icon on Desktop but the share is mounted correctly. Umount only possible with root.

Revision history for this message
Daniel Muller (daniel-muller) wrote :

I've seen that the same problem was reported on the Debian bugtracker:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586009

The problem is that mount.cifs appends a trailing slash to the share name in /etc/mtab which differs from the line in /etc/fstab.
Adding the trailing slash in /etc/fstab resolved all my issues:
//share/ ~/mountpoint cifs users,noauto,credentials=~/.credentials,iocharset=utf8,uid=1000,gid=1000 0 0

Revision history for this message
themroc (rauchweihe) wrote :

The solution from Daniel Muller adding a the trailing slash solve for me the umount problem too. Thanks

Revision history for this message
Max-Ulrich Farber (maxulrichfarber) wrote :

Adding a trailing slash is an easy workaround. But the bug should be fixed anyhow. Thanks.

Changed in cifs-utils:
status: Unknown → New
Revision history for this message
sultan (gerard-snoek) wrote :

Same problem here with 10.10 64bit
Also can't find umount.cifs, only mount.cifs in the /sbin directory

Changed in cifs-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
themroc (rauchweihe) wrote :

[user:sultan] wrote:
Also can't find umount.cifs, only mount.cifs in the /sbin directory

But this is correct, see the 2nd Point in https://code.launchpad.net/~ubuntu-branches/ubuntu/maverick/cifs-utils/maverick for details: "* umount.cifs (and by extension, smbumount) no longer exists upstream,
   because mount.cifs no longer permits non-root users to mount except by
   way of the standard /etc/fstab arguments."

Changed in cifs-utils:
status: New → Confirmed
Revision history for this message
FlekkeN (flekken) wrote :

This affect me too. Im in Natty 11.04 and my fstab line:
//server/letoltesek /media/letoltesek cifs credentials=/etc/samba/credentials_flekken,noauto,users,_netdev,rw,iocharset=utf8 0 0
In this case there is an icons in nautilus panel but if i click on it and mount the fs another icon appears with the drive mounted and also an error appears:
Timeout waiting for mount to appear

if I write this:
//server/letoltesek/ /media/letoltesek cifs credentials=/etc/samba/credentials_flekken,noauto,users,_netdev,rw,iocharset=utf8 0 0
Same but with a trailing / no error, only 1 icon and no umount problem.
So that trailing / definetly a problem.

Changed in cifs-utils:
status: Confirmed → Fix Released
Vibhav Pant (vibhavp)
Changed in cifs-utils (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.