Red Hat Bugzilla – Bug 182042
HAL assigns different device ownership according to fs type
Last modified: 2013-03-13 00:49:56 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:188.8.131.52) Gecko/20060210 Fedora/184.108.40.206-3 Firefox/220.127.116.11
Description of problem:
If a USB device is attached at boot time, it is given different ownership according to file system type. In particular if a vfat device is attached, then ownership is given to the console user. On the other hand, if the device is formatted with ext3 then root owns the device after boot up.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Attatch a vfat formated USB device and a ext3 formatted USB device
3. Login in as a normal user
Actual Results: The vfat device is owned by the user and can be unmounted by the user while the ext3 device is woned by root and cannot be controlled by the user.
Expected Results: Both devices are owned by the console user.
My opinion would be that the system should not mount any device at boot time unless the device is defined in /etc/fstab. Removable devices should be optionally mounted by the desktop environmnet when a user logs in. This seems like a security concern.
ext2/3 follows *nix ownership conventions. There is no way to force a specific
owner for the device. As for who can mount/unmount it, that would indeed be
something that hal can handle.