retitle 586009 mount.cifs appends trailing slash to share name in mtab, 
prevents user unmounts
tags 58609 confirmed upstream
thanks

On Tue, Jun 15, 2010 at 09:08:56AM -0800, James Zuelow wrote:
> I appreciate the new cifs.utils version coming down as I can now mount
> CIFS shares as a regular user.

> However I cannot UNMOUNT the shares as a regular user.

>         List mounts:
> ja...@mis-jz-lnx:~$ mount
<snip>
> //files.ci.juneau.ak.us/james$/ on /home/james/G type cifs 
> (rw,mand,nosuid,nodev,user=james)

>         Attempt to umount cifs share:
> ja...@mis-jz-lnx:~$ umount G
> umount: /home/james/G mount disagrees with the fstab

>         Relevant fstab entry:

> //files.ci.juneau.ak.us/james$      /home/james/G        cifs    
> acl,rw,user,noauto,credentials=/home/james/.nt/creds 0 0

This will be a bug in the /etc/mtab entries that mount.cifs is outputting.

As a workaround, you can add a trailing slash to the filesystem field in
/etc/fstab for this share and 'umount' should then recognize the
equivalence and permit you to unmount it.  However, I think the trailing
slash in /etc/mtab is wrong and should be fixed upstream - at which point
this will break again and you'll need to switch it back the other way.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: Digital signature

Reply via email to