Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-18-2005, 02:22 PM   #1
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
Normal user being able to mount cdrom

Hi all,

sorry for this basic question but when i log in as my normal user i cant execute any of the commands i need, such as being able to mount the cdrom, iwconfig, installpkg and a few others.

Any help appreciated.
Old 10-18-2005, 02:34 PM   #2
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,208

Rep: Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390
Mounting a cdrom drive as a normal user is understandable, and the way to do it is to review your fstab, and under it look for the entry for your cdrom, and change the part that says "noauto,owner,ro" to "noauto,users,ro" , and that should enable you to mount your cdrom drive. As for the others, such as iwconfig, and installpkg, you do NOT want normal users to be able to do that, because that is a major risk, and you only want the adminstrator (you) to be able to install and remove things, and change system settings, not any other user, even though you are the only user on the machine, it is still good practice.
Old 10-18-2005, 04:17 PM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You may want to investigate using sudo to grant normal users the ability to run specific commands that you specify with root privileges. I do that for a few things like iwconfig.
Old 10-18-2005, 04:43 PM   #4
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Here are my fstab entries. First CD drive is a writer, second is read-only.

/dev/sr0 /media/cdwriter iso9660 noauto,user,rw,unhide 0 0
/dev/hdd /media/cdrom iso9660 noauto,user,ro,unhide 0 0

I'm using the 2.4.28 kernel.

I also use GRUB and I added the hdc=ide-scsi switch to the boot options.

I use KDE as my GUI and I enable the KDE desktop device icons for the floppy and CD drives. There are two device icons for each device: mount and umount. But you always see only one icon or the other, depending upon the status of the device. When a CD or floppy is mounted a small green triangle appears in the device icon. These icons, along with my fstab, means I mount and umount my CDs, as well as eject, directly from the KDE desktop. All without hitches. Works well.

I hope this helps.
Old 10-18-2005, 04:49 PM   #5
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
you can also use autofs to auto-mount cd and floppy .
look here :

a little down the thread is how it was explained to me.
and it works ok.

Old 10-21-2005, 03:38 PM   #6
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you decide to use sudo, you are supposed to use the root program "visudo" to edit the /etc/sudoers file. There are examples, in the comments of the file, on allowing users to execute certain commands. There is a commented example using the "shutdown" command. You might consider making the changes for members of the wheel group, and only allowing it to be done locally. These are covered in the examples. Also read through man sudo or info sudo. I'm not sure but sudo may be documented in the coreutils manual also.

One last thought. The /sbin directory may not be in the path of a normal user, so you may need to give the full pathname for some commands in the sudoers file. Or maybe in the /etc/profile script, you could conditionally add "/sbin" and "/usr/sbin" to the PATH variable only for wheel group members.

Last edited by jschiwal; 10-21-2005 at 03:41 PM.
Old 10-21-2005, 05:21 PM   #7
LQ Newbie
Registered: Oct 2005
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
An easy way to mount cdrom as user is to add the user to the cdrom group.

edit /etc/group
add your username to the cdrom entry

Then you will always be able to mount and unmount cdroms with that user.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount floppy as normal user melinda_sayang Slackware 3 01-13-2007 01:59 PM
normal user can mount? vacilus Linux - Software 1 12-22-2004 11:39 AM
Cant mount cdrom in normal user, tried to set permissions, no work. Kindly help me. RHLinuxGUY Slackware 2 09-13-2004 09:35 PM
Cant mount any dev as a normal user Vencalator Linux - Newbie 6 09-16-2003 05:42 AM
cdrom normal user access N|ghtwo|f Linux - Software 1 07-08-2003 07:05 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration