LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-17-2003, 08:56 AM   #1
dokterneo
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Rep: Reputation: 0
Question Why can't a non-root user mount a cdrom?


What is the correct fstab info to allow users to mount cdroms?

I thought it was:

/dev/cdrom /mnt/cdrom auto,user,ro 0 0

But it says I must be a superuser to use mount

The attributes on mount are rwxr-xr-x

Please help.

Thanks
 
Old 12-17-2003, 09:05 AM   #2
mrpdaemon
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
/dev/cdrom is a symlink to some other device, like /dev/hd* .

check the permissions of the real device (/dev/hd*). Most probably they are

root.root rwx --- ---

so a chmod 744 can help you perhaps.
 
Old 12-17-2003, 09:06 AM   #3
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
Try this one:

/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
 
Old 12-17-2003, 09:44 AM   #4
mcleprechaun
Member
 
Registered: Oct 2003
Location: Missouri
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
You had is right the first time except for the "s" that was left off "users". The group is users not user.
 
Old 12-17-2003, 10:05 AM   #5
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by mcleprechaun
You had is right the first time except for the "s" that was left off "users". The group is users not user.
I find a question that I can answer with 100% certainty and someone beats me to the punch
 
Old 12-17-2003, 11:16 AM   #6
Piratero
Member
 
Registered: Sep 2003
Distribution: FreeBSD-5.2.1
Posts: 38

Rep: Reputation: 15
By the way it's the same for sr* (/dev/sr0) emulation!
 
Old 12-17-2003, 12:25 PM   #7
dokterneo
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Original Poster
Rep: Reputation: 0
ok, I am at my wit's end.

here is the current config:

fstab
/dev/scd0 /mnt/cdrom auto auto,users,ro

I am using ide-scsi

user: bob
member of users

/dev/scd0 attrib are rwxr--r--
/dev/sr0 attrib are rwxr--r--

/mnt/cdrom attrib are rwx-r--r--

What on earth am I missing?

Last edited by dokterneo; 12-17-2003 at 01:19 PM.
 
Old 12-18-2003, 11:16 PM   #8
mpegler
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
'auto' means the CD is already mounted during boot.
'user' means only the mounter, 'root' in this case during bootup, can unmount it.

Change it to 'noauto' so the CD is not mounted on boot.

Include either 'user' or 'users' so non-root users can mount the CD.
Choose 'user' if the mounter is the only one that can unmount a mounted CD.
Choose 'users' for anyone to unmount the CD.
 
Old 12-21-2003, 07:01 PM   #9
freychef
Member
 
Registered: May 2003
Location: Montreal
Distribution: Slack, Libranet
Posts: 92

Rep: Reputation: 15
I had the same problem as dokterneo but took a different approach.

My /dev/cdrom was linked to /dev/hdc which was owned by root. Instead of messing with /etc/fstab I just changed ownership from root to freychef.

chown freychef /dev/hdc.

Its simple, works and proves there's more than one way to skin a cat with Linux!
 
  


Reply



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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Non-root cdrom mount kleptophobiac Slackware 9 02-15-2005 05:59 PM
mount cdrom as non-root user derfaust Slackware 31 07-30-2004 05:57 PM
Cannot mount cdrom as user or root in Mandrake 8.2 TlitJ Linux - General 11 09-09-2003 03:51 PM
Unresolved : Cannot access cdrom mount from any user except root??? acadcworks Linux - General 5 10-18-2002 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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