Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-17-2003, 09:56 AM   #1
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.

Old 12-17-2003, 10:05 AM   #2
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, 10:06 AM   #3
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, 10:44 AM   #4
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, 11:05 AM   #5
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
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, 12:16 PM   #6
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, 01:25 PM   #7
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:

/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 02:19 PM.
Old 12-19-2003, 12:16 AM   #8
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, 08:01 PM   #9
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!


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

All times are GMT -5. The time now is 06:39 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