plugging in USB storage device mounts on random desktop

Bug #45332 reported by Jim Basilio
6
Affects Status Importance Assigned to Milestone
gnome-volume-manager (Ubuntu)
Fix Released
Medium
R. Pereira Braga

Bug Description

I have been using 1 computer with 2 desktops [x sessions] for some time now (cntrl-F7, cntrl-F8). One of the things that does not work well is shared access to devices, especially hotplug devices.

Specifically, USB storage devices (such as flash memory), when plugged in, will mount in either one X session or the other X session. The X session that mounts it opens up a window with the contents of the flash memory (yeah!) - but the other X session fails mounting and displays an error. That X session is then no longer able to access the mount point due to how the security settings are setup.

What I would like to see is permissions based on a user group. If devices are hotplugged into the system, let anyone in this group have shared access to them. This includes mounting/unmounting as well as read/write to them. I used to manually adjust things by hand during the hotplug days, but I don't know how to manually adjust this anymore and it seems there is a larger push to support this type of desktop (multiple X sessions).

Thanks!

Revision history for this message
Jim Basilio (jim-basilio) wrote :

BTW : this is for dapper drake

Revision history for this message
Jim Basilio (jim-basilio) wrote :

After further digging this is an issue with the file kioslave (kioslave/file/file.cc) not accepting a umask while using pmount. In multiuser graphical environments, the ability to set umask is very important.

If the ioslave accepted a umask, both users would be able to access the mounted device and this wouldn't appear "random".

Changed in gnome-volume-manager:
assignee: nobody → rpereira
Revision history for this message
Jim Basilio (jim-basilio) wrote :

Another note, I've downloaded the kde source and attempted to patch in the umask setting I desire (in the file.cc ioslave) and this doesn't appear to be working. I wonder if HAL/DBUS is actually performing the mount and not the ioslave (likely).

If so, this is a system-wide issue still and not an issue with the ioslave.

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Hi there
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you?, Can you please try with the live environment of the Desktop CD of the development release - Hardy Heron?

Thanks in advance.

Changed in gnome-volume-manager:
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

This is fixed in Hardy now, only the currently active desktop session can use mount operations.

Changed in gnome-volume-manager:
status: Incomplete → 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.