Bug 90525 - console.perms does not affect directory ownership
console.perms does not affect directory ownership
Status: CLOSED WORKSFORME
Product: Red Hat Raw Hide
Classification: Retired
Component: pam (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-05-09 05:59 EDT by Tim Waugh
Modified: 2015-01-07 19:05 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-22 04:59:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2003-05-09 05:59:20 EDT
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):
pam-0.75-48

How reproducible:
100%

Steps to Reproduce:
1. Log on at the console.
2. Compare ownership of /dev/fd0 and /mnt/floppy:

ls -ld /dev/fd0 /mnt/floppy
    
Actual results:
/mnt/floppy is owned by root only.

Expected results:
Owners should match.

Additional info:
Comment 1 Tomas Mraz 2004-09-22 04:11:32 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.