Bugzilla – Bug 144873
hal mounting an USB device with option "procuid" will not inherit the correct ownership
Last modified: 2007-06-04 16:51:19 UTC
On a freshly booted SUSE 10.1 system I log in as a regular user on X (gnome). When I plug in some USB hard drives hal mounts them under /media/something and I can access them just fine. The permissions, however, are not reflecting myself, as root is shown as the owner. So I do not have write permissions. Here is the mount output: /dev/sda2 on / type reiserfs (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/sda1 on /windows/c type ntfs (rw,noexec,nosuid,nodev) /dev/sda5 on /windows/d type vfat (rw,noexec,nosuid,nodev) /dev/sdb2 on /media/ipod type subfs (rw,nosuid,nodev,fs=floppyfss,procuid,utf8=true) /dev/sdc1 on /media/FREECOM type subfs (rw,nosuid,nodev,fs=floppyfss,procuid,utf8=true) /dev/sdc2 on /media/usbdisk type subfs (rw,nosuid,nodev,fs=ext3) /dev/sdc2 on /media/disk type ext3 (rw,noexec,nosuid,nodev) /dev/sdc1 on /media/FREECOM-1 type vfat (rw,noexec,nosuid,nodev) /dev/sdb2 on /media/MYIPOD type vfat (rw,noexec,nosuid,nodev) What is also strange in here is the fact, that the volumes from the USB drives are mounted twice. Once from HAL and once from GNOME (I guess gnome-volume-manager thru HAL). I can turn of the latter, but then the new devices don't show up in GNOME. Any ideas? Thanks! Ron
I did some more research on this. I am using gnome and the gnome-volume-manager was active (which it is by default). When plugging in the USB device, it will be mounted by HAL like this: /media/FREECOM with subfs, but it won't show up under GNOME immediately. Then gnome-volume-manager will get kicked in by HAL and will mount it again as /media/FREECOM-1, with totally different mount options. (see mount output in my previous post). I only have r/o access as a normal user in this situation, as the PROCUID option does not seem to have any effect. So I disabled the auto-mount in gnome-volume-manager. Now if I stick in the USB device. only HAL will mount it with subfs. Cool. No sign of it in GNOME, but ok. Now I open nautilus and go to the /media/FREECOM folder. Cool! I got r/w access. For a brief time the ownership of the mount point will be myself. So far, so good. However, when I start to open folders in the /media/FREECOM folder, gnome seems to detect the device and will mount it, causing nautilus to jump back to my homefolder every few seconds. This is kinda strange.
subfs is dropped from kernel and HAL doesn't mount anymore automatically. Please retry this on a Beta2 and if there are bugs present, please report against GNOME.
Closed.