Red Hat Bugzilla – Bug 90525
console.perms does not affect directory ownership
Last modified: 2015-01-07 19:05:00 EST
Description of problem:
When trying to access my compact flash card via /mnt/camera, I have to chown it
to my user account before I can mount it. But console.perms has:
<camera>=/mnt/camera* /dev/usb/dc2xx* /dev/usb/mdc800*
<console> 0600 <camera> 0600 root
The reason this isn't a problem for floppy drives is that the device node is
also listed in console.perms; for USB mass storage that isn't known.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Log on at the console.
2. Compare ownership of /dev/fd0 and /mnt/floppy:
ls -ld /dev/fd0 /mnt/floppy
/mnt/floppy is owned by root only.
Owners should match.
Actually you need to have ownership of the device, not a mount point,
to be able to mount it.
pam_console looks for mount point in /etc/fstab and changes the
ownership of the appropriate device.
So for mounting the camera device to work, you need to have correct
entry in fstab.
This way it works at least in FC2 but IMHO it was like this much earlier.