LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 12-14-2005, 04:18 PM   #1
Old Timer
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Permission Denied


Just starting with Linux Ubuntu - when I try to mount a drive I get a "Permission Denied". How do get around this?
 
Old 12-14-2005, 04:57 PM   #2
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Rep: Reputation: 15
You need to be root to mount devices.

Make sure you have the mount point created ie /mnt/cdrom

then:
# mount /dev/hdx /mnt/cdrom

Thats an example, if it doesn't suit you, post more info
about your device and comand(s) you are using

-West
 
Old 12-14-2005, 09:44 PM   #3
Old Timer
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Tried your input and received "only root can do that" - how do I get to the root from "home"?
 
Old 12-14-2005, 10:11 PM   #4
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 41
Mounting Non-Root

I think the root account in Ubuntu is accessed by using the "sudo" command. Type "sudo CMD" in a terminal, where "CMD" is the command you want to run.

Also, if the permissions are set correctly on the device file, you can mount it as a normal user by using the "user" option in your /etc/fstab (or by passing the "user" option to "mount" with the "-o" switch). The device can then be un-mounted only by that user and root.

Strange, though, that Ubuntu wouldn't enable that by default, since it prides itself on its user-friendliness...

Last edited by taylor_venable; 12-14-2005 at 10:16 PM.
 
Old 12-15-2005, 04:23 PM   #5
Old Timer
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
By gosh I think I have it! Thanks to all for your help
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
su -> permission denied progster Linux - General 9 06-28-2007 01:36 PM
permission denied :( wogga Linux - Software 2 05-28-2004 01:52 PM
Permission Denied lackof Linux - Networking 1 08-14-2002 11:46 PM
Permission Denied Viper Slackware 7 08-07-2002 09:22 PM


All times are GMT -5. The time now is 03:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration