LinuxQuestions.org
Visit Jeremy's Blog.
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 02-15-2005, 04:32 PM   #1
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
Non-root cdrom mount


I have the "user" option set in fstab on /dev/cdrom, I have 660 permissions to root.cdrom on /dev/hdc (/dev/cdrom points there), and I have my user in the cdrom group... yet I still can't mount /dev/cdrom as a non root user.

Anybody have any other suggestions?
 
Old 02-15-2005, 04:35 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
in your fstab change user to users but see man mount first for the description ( it's a little different than the user option, it basically lets all users mount the cdrom)

Last edited by __J; 02-15-2005 at 04:50 PM.
 
Old 02-15-2005, 04:51 PM   #3
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Just tried that, still no dice.
 
Old 02-15-2005, 04:54 PM   #4
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
Try adding yourself to the "disk" group
 
Old 02-15-2005, 05:03 PM   #5
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Still no workie...

Thanks for the quick help though!
 
Old 02-15-2005, 05:40 PM   #6
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
Let's go all out here

cat fstab
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0

ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 2005-02-15 07:28 cdrom -> hdc

ls-l /dev/hdc
brw-rw---- 1 root cdrom 22, 0 2005-02-15 07:28 hdc

ls -l /mnt/cdrom
dr-xr-xr-x 6 root root 2048 2004-05-01 13:37 cdrom
 
Old 02-15-2005, 05:46 PM   #7
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Check
Check
Check
Check

mount: only root can do that

Damn!
 
Old 02-15-2005, 05:47 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try using "sudo", I had to do that on Slack coz nothing I tried would work for me.
 
Old 02-15-2005, 05:55 PM   #9
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
edited to delete a newbie reply

Last edited by coffeedrinker; 02-15-2005 at 05:56 PM.
 
Old 02-15-2005, 05:59 PM   #10
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
I need this to alllow a program to mount when necessary, it is unacceptable to have to type a password all the time.

I'm thinking I'll just set the suid bit on mount, this machine is on a local network where nothing will ever hurt it.... so whatever.
 
  


Reply


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 prob. can only mount as root farpoint Slackware 6 06-04-2005 11:07 AM
mount cdrom as non-root user derfaust Slackware 31 07-30-2004 05:57 PM
Can't mount or unmount cdrom unless I'm root jsfueston Slackware - Installation 1 01-30-2004 04:05 PM
Why can't a non-root user mount a cdrom? dokterneo Slackware 8 12-21-2003 07:01 PM
cdrom mount not by root eg72 Linux - General 1 12-05-2003 05:15 AM

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

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