All three bugs on this are from the same source. This is the fix.  I am
attaching this patch to all three.  I have been using it for a while,
its fine.  The attached patch should be applied to the src-dep of util-
linux.  For those of you who want this fix now follow these
instructions:

Modify your source.list so you have so the dep-src for the main
repository enabled and copy the patch into /tmp.  Then run the following
commands:

$ sudo apt-get update
$ sudo apt-get install build-essential
$ sudo apt-get build-dep mount
$ cd /tmp
$ apt-get source mount
$ cd util-linux-2.12r
$ ./debian/rules patch
$ patch -Np1 -i ../util-linux_user_mount.patch
$ ./configure
$ make lib
$ make -C mount
$ sudo chown root:root mount/umount
$ sudo chmod 4755 mount/umount
$ sudo mv mount/umount /bin

now you should be able to unmount you drive that was user mounted using
a uuid.

As a note to the user above if you are going to have an external drive
auto mountable by uuid or label with an fstab entry you should never us
the "defaults" option.  This allows suid and dev files to work on the
drive.  From as security standpoint anyone who can look at the fstab can
now grab your uuid or lable and set it up on a drive they have.   Thats
bad because then all they have to do is static link a program that makes
them root and suid it and they have you system.  I recommend the
following options for external drives:  rw,exec,noauto,user.  Of course
for even more security you drop the exec.  Anyway hope this helps out
and I hope this fix will be in the next few updates.


** Attachment added: "Patch for fixing user uuid unmounting"
   http://librarian.launchpad.net/7435902/util-linux_user_mount.patch

-- 
mounting via UUID behaves strange in kubuntu feisty
https://bugs.launchpad.net/bugs/94848
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to