Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150015 - nonroot cannot umount volumes mounted by ivman
Summary: nonroot cannot umount volumes mounted by ivman
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Rohan McGovern
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-03 15:46 UTC by Roman Polach
Modified: 2007-03-06 15:02 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Polach 2006-10-03 15:46:43 UTC
I have installed hald,udev,ivman and succesfuly start them.
When I plug an USB-stick in, ivman mounts it in /media/sdb1.
As non-root user I can acces files on it, read it, write...
but when I want to "umount /media/sdb1", it says
"umount: /media/sdb1 is not mounted (according to mtab)".
Only root can successfuly unmount it.

Note 1: there are no entries related to /dev/sdb1 or /media/sdb1 in /etc/fstab

Note 2: user is member of plugdev group

Note 3: creating file /usr/share/hal/fdi/95userpolicy/mypolicy.fdi
with content:
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <deviceinfo version="0.2">
  <device>
  <merge key="storage.policy.default.mount_option.users" type="bool">true</merge>
  </device>
  </deviceinfo> 
(and restarting dbus+hald+ivman)
did not help.

udev-087-r1
hal-0.5.7-r3
ivman-0.6.12

gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686
Comment 1 Roman Polach 2006-10-09 10:43:17 UTC
* should I post more info?
* would ivman/hal downgrade help?
Comment 2 Rohan McGovern 2006-12-01 16:08:07 UTC
Ivman is probably mounting using pmount, and hence pumount must be used to unmount.
Comment 3 Roman Polach 2006-12-02 15:33:10 UTC
if so, then gnome disk mounter applet should
use pumount too.
Comment 4 Rohan McGovern 2006-12-02 15:38:06 UTC
If you have to use some other programs which need a specific mount or umount command for compatibility, you can set commands in IvmConfigBase.xml.
Comment 5 Roman Polach 2006-12-04 13:47:57 UTC
when I set pmount and pumount as mount/umount commands in IvmConfigBase.xml,
gnome disk mounter applet cannot umount the volume, it displays: "... was not mounted by you"
...and when I set "mount" and "umount" as mount/umount commands, it cannot
mount anything without an appropriate entry in fstab
Comment 6 Bram Schoenmakers 2007-01-13 21:46:53 UTC
I'm seeing the very same symptoms with KDE/KDE Mediamanager (HAL) as well recently. I have no idea what has caused this, though.
Comment 7 ic+gentoo 2007-03-06 10:49:05 UTC
I believe it is written in documentation that if you want to be able to unmount the device, you need to start a user instance of ivman. Thus the device is mounted with your uid so only you have access to the data from the disc, and pumount can unmount it. 
If you look to the man page of punmount, it can only unmount if the device was mounted with your uid. 

As a bonus, when running a user instance of ivman, the mount point is the correct one, like /media/USBDISK, and not /media/sdb1.

So my oppinion is that this isn't a bug.
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-06 15:02:59 UTC
It is not a bug, it is a feature :)