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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
05-26-2009, 01:54 AM
#1
Member
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381
Rep:
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.
05-26-2009, 02:02 AM
#2
Member
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 213
Rep:
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
05-26-2009, 02:26 AM
#3
Member
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381
Original Poster
Rep:
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
05-26-2009, 02:28 AM
#4
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,367
Rep:
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).
05-26-2009, 02:53 AM
#5
Member
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381
Original Poster
Rep:
I tied changing it but unable to mount it, do i nedd to put a s bit on /bin/mount
05-26-2009, 03:11 AM
#6
Member
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 213
Rep:
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
05-26-2009, 05:42 AM
#7
Member
Registered: Dec 2008
Distribution: LFS
Posts: 95
Rep:
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.
05-26-2009, 07:44 AM
#8
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 9,362
Hi,
I don't use Fedora but your users should be in the proper 'groups'.
05-27-2009, 06:10 AM
#9
Member
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381
Original Poster
Rep:
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.
05-27-2009, 08:19 AM
#10
Member
Registered: Dec 2008
Distribution: LFS
Posts: 95
Rep:
4710 are awkward permissions (rwx--x---). Do you have any reason for doing so? Because then programs using mount will not work.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 02:45 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News