LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2004, 10:10 AM   #1
rsumbeling
Member
 
Registered: Nov 2004
Location: Toronto, Ontario
Distribution: slackware, redhat
Posts: 42

Rep: Reputation: 15
Question can't mount CD ROM on non-root user


Hi,

I have a question, when logged as non-root to my slack 10, and trying to mount a CD, an error message appears: "only root can mount /dev/cdrom on /mnt/cdrom". what can i do to mount a CD rom while im logged as non-root user? i'm installing the oracle 9i database on my slack 10.

by the way, oracle 9i cannot be installed if the user is root.

thanx
 
Old 12-03-2004, 10:35 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
man mount talks about the options you can put in /etc/fstab to allow non root users to mount things.
Quote:
Thus, given a line
/dev/cdrom /cd iso9660 ro,user,noauto,unhide
any user can mount the iso9660 file system found on his CDROM using the
command
mount /dev/cdrom
 
Old 12-03-2004, 11:06 AM   #3
rsumbeling
Member
 
Registered: Nov 2004
Location: Toronto, Ontario
Distribution: slackware, redhat
Posts: 42

Original Poster
Rep: Reputation: 15
Thanx andrew,

i got another question, when i tried to run the program from that CD rom, i get a permission error:

"-sh: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied"

what can i do to have permission on running programs on CD rom??

thanx
 
Old 12-03-2004, 01:13 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by rsumbeling
"-sh: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied"
ln -s `which bash` /bin/sh
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
cannot mount CD ROM on non-root user rsumbeling Linux - Security 4 12-04-2004 01:09 AM
mount cdrom as non-root user derfaust Slackware 31 07-30-2004 05:57 PM
Mount Cd as non-root user rayyen Linux - Newbie 4 08-31-2003 09:21 AM
Can't mount as non-root user thepenguinhippy Linux - Newbie 4 07-30-2003 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:49 AM.

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