LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-26-2009, 01:54 AM   #1
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Mount CDROM


Hello,
My requirement is that i want to set up something like ..

A non root user should be able to mount the cdrom device
Able to copy the contents on the CD.

The solution i have thought of is giving sudo rights to the user but in that case i need to give sudo on cp as well,

What will the best way to achieve it.
 
Old 05-26-2009, 02:02 AM   #2
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 214

Rep: Reputation: 35
Hi there,

What distribution are you using??? I thought with any newer distro, the automount was de facto. Have you tried just putting a CD into your rom???

Cheers
 
Old 05-26-2009, 02:26 AM   #3
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
I am using RHEL 5.2
Follwoing is my fstab entry

/dev/cdrom /mnt/cdrom auto noauto,owner,kudzu,ro,nosuid,nodev 0 0

I dont want it to be auto mount
 
Old 05-26-2009, 02:28 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Not sure what "kudzu" does in your options list, but you probably want to change "owner" to "users" (see the fstab man page for more details).
 
Old 05-26-2009, 02:53 AM   #5
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
I tied changing it but unable to mount it, do i nedd to put a s bit on /bin/mount
 
Old 05-26-2009, 03:11 AM   #6
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 214

Rep: Reputation: 35
Hi there,

You might want to update the fstab after changing entries. The best solution for you would probably be to reboot your machine. In the reboot process, the fstab is updated and you should be able to mount the CDROM.

Cheers
 
Old 05-26-2009, 05:42 AM   #7
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
permissions on /bin/mount should be 4755.

Try changing "owner" to "user", not "users" (see man mount). And maybe remove "kudzu" since that autoconfig may do some weird things.
 
Old 05-26-2009, 07:44 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,148
Blog Entries: 3

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
Hi,

I don't use Fedora but your users should be in the proper 'groups'.
 
Old 05-27-2009, 06:10 AM   #9
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
If i change the permission of mount to 4710 i am unable to run cdrecrord

It gives the following error, any idea on this ??

cdrecord: Resource temporarily unavailable. Cannot get mmap for 4198400 Bytes on /dev/zero.
 
Old 05-27-2009, 08:19 AM   #10
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
4710 are awkward permissions (rwx--x---). Do you have any reason for doing so? Because then programs using mount will not work.
 
  


Reply

Tags
cdrom, mount, 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
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
can't mount the cdrom Alwyn Linux - Software 6 01-13-2005 06:49 AM
Cdrom won't mount, "cdrom busy" mickeyboa Fedora 7 11-30-2004 10:39 PM
CDROM can not mount fedel Linux - Hardware 3 08-14-2002 10:14 AM
Why can't I mount my CDRom???? xM0M0x Linux - Newbie 2 08-23-2001 04:25 PM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
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