Showing results for 
Search instead for 
Did you mean: 

User access to cdrom

Marty Metras
Super Advisor

User access to cdrom

I missed some thing.
I mounted the cdrom as the user root but I get an error message access denied for all other users. What have I missed?
Background info.
I use the command: mount -t iso9600 /dev/cdrom /mnt/cdrom
In /etc/fstab it is set to auto load.
I get the same access denied with the floppy.
I can mount both with iso9660 or msdos and only read the devise as root.
This is a new install of Mandrake 7.2 and I installed it as a server. Every thing else that I have tested seams to be working OK.
What did I miss?
Any ideas?
The only thing that always remain the same are the changes.
Mark Fenton
Esteemed Contributor

Re: User access to cdrom

Check /etc/fstab

The line for both the CDROM and the floppy should look something like:

/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

(assuming Mandrake uses kudzu, a utility supplied by RedHat, which auto-detects hardware during startup.)

The above entries in my setup allow a user to insert and use a cdrom or floppy normally. The catch is that the device BELONGS to the user, and thus anyone else would have, at best, ro access to the device. This may explain why no one but root can read the cdrom after root has mounted it -- they just don't have the appropriate GID to do so.