I have a cdrom that only lets me view files if I go as root in console, which bugs me because after that I need to do everything as root since I save these files afterwards. This might be a beginner's issue, but I'm a beginner in linuxSo how can I make my simple user be able to view the contents of the cd?
EDIT : Sorry I totally forgot to say my distro.. I'm running Ubuntu 9.04 x64
-
-
This will depend on what version and distribution of Linux you are running, but assuming it's something relatively modern, you could try the following.
Comment out any CD and/or DVD line in your /etc/fstab file. Like this;
Code:#/dev/cdrom /mnt/cdrom auto noauto,users 0 0
If that still doesn't work you want to make sure your user account is a member of the right group, thereby giving your user account the correct privileges to read from the optical drives. To add a user to a specific group you would use the command;
Code:useradd -G {group-name} [username]
Code:useradd -G cdrom joe
Please note, you will need to do the editing of the /etc/fstab file, or adding users to groups, as the root user, or with the sudo command.
Good Luck.. -
I commented a line about the cdrom in the fstab file like you said and it fixed it. Thanks alot
Can't open cdrom unless in root user?
Discussion in 'Linux Compatibility and Software' started by L4d_Gr00pie, Aug 5, 2009.