Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-16-2006, 05:42 PM   #1
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
cannot mount as normal user

Hi all, i need to mount the cd/dvd drive as a normal user (mainly so i can mount cds on cedega, right now it says only root can), i have added a few things to sudoers but it still isnt working:
Host_Alias	LAPPY =

%users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
%users  localhost=/sbin/shutdown -h now
ALL		LAPPY = NOPASSWD: /sbin/umount /LAPPY,\
		/sbin/mount -o nosuid\,nodev /dev/cd0a /LAPPY
Does anyone know where i have gone wrong there? Is there a better way to allow a normal user to mount cds/dvds?

Any help greatly appreciated.
Old 03-16-2006, 06:12 PM   #2
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
What you can do is to edit the /etc/fstab file to allow all users to mount/unmount those drives by simply adding a "users" line to the ones you want. Your /etc/fstab should have lines that look something like this:
/dev/hdc     /cdrom     cdfs     ro,noauto,exec    0     0
to remedy the mount problem - add a "users" to the third column.

/dev/hdc     /cdrom     cdfs     ro,noauto,exec,users     0     0
This should allow a normal user to mount the cdrom drives (and it works with anything, so a normal user can mount a HD with this too)
Old 03-16-2006, 07:19 PM   #3
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Thanks for the reply.
I added users to the third column:
/dev/hda1        /                ext3        defaults         1   1
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro,users  0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
But im still getting
mount /dev/cdrom /mnt/cdrom
mount: only root can do that
The same drive is also a dvd writer, is this the reason why normal users cant mount it? If not what is?

Any help appreciated.
Old 03-16-2006, 07:36 PM   #4
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 166Reputation: 166
Try it as just mount /dev/cdrom or mount /mnt/cdrom. That should work...


fstab, mount

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 being able to mount cdrom dave`2005 Slackware 6 10-21-2005 05:21 PM
normal user can mount? vacilus Linux - Software 1 12-22-2004 11:39 AM
normal user cannot use mount command mrosati Slackware 4 01-05-2004 02:59 PM
Cant mount any dev as a normal user Vencalator Linux - Newbie 6 09-16-2003 05:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration