Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-14-2005, 03: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, 03:57 PM   #2
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

# 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

Old 12-14-2005, 08: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, 09:11 PM   #4
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
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 09:16 PM.
Old 12-15-2005, 03: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


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 04:50 AM
su -> permission denied progster Linux - General 9 06-28-2007 12:36 PM
permission denied :( wogga Linux - Software 2 05-28-2004 12:52 PM
Permission Denied lackof Linux - Networking 1 08-14-2002 10:46 PM
Permission Denied Viper Slackware 7 08-07-2002 08:22 PM > Forums > Non-*NIX Forums > Programming

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