LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 03-16-2006, 06:42 PM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 266

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:
Code:
Host_Alias	LAPPY = 192.168.0.179/255.255.255.0

%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, 07:12 PM   #2
xpromisex
Member
 
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:
Code:
/dev/hdc     /cdrom     cdfs     ro,noauto,exec    0     0
to remedy the mount problem - add a "users" to the third column.

I.E
Code:
/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, 08:19 PM   #3
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 266

Original Poster
Rep: Reputation: 30
Thanks for the reply.
I added users to the third column:
Code:
/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
Code:
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, 08:36 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

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


Reply

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


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

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