Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2015, 04:21 AM   #1
LQ Newbie
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
bash: Permission Denied Error

Linux Newbie here...running Ubuntu 14.04 LTS

Downloaded a couple of binaries/executables to the Downloads directory. ./command runs just fine but copying the binaries to /bin or /usr/bin says permission denied. I used chmol

After digging a bit more, realized that my FS is being mounted as read only!. Not sure why. /etc/fstab says UUID=8559f1a0-60e0-47e4-922d-9175f282fa8a / ext4 errors=remount-ro 0 1

Something is not right with the filesystem and I am not sure how to fix it.


Last edited by rajurs; 03-19-2015 at 04:46 AM. Reason: Found More Information.
Old 03-19-2015, 04:33 AM   #2
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
So is the copy to /bin where the error is or when you try to run them after copying them?

The first would be because you need to be root.

The second would normally be because you do not have access to the file in the directory
1 members found this post helpful.
Old 03-19-2015, 06:53 AM   #3
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 535

Rep: Reputation: 79
What does the command mount say?
1 members found this post helpful.
Old 03-20-2015, 03:42 PM   #4
LQ Newbie
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
The errors are after I copy the command to the /bin directory as a su. What is not apparent to me is why some commands/programs pre-installed run but the one I downloaded (docker-machine) doesn't and throws the permission denied error. That's when I ran into the ro option set on the drive!

When I run "mount -o remount, rw /", it looks like it succeeds (no errors) but then when I run just "mount" again, I see that the root partition on sda5 is still set to noexec ro.
So, I ended up using the took disk? to see if things can be fixed using a GUI tool (since I am a veteran Windows guy), that made things worse as it completely got the mount points messed up.
Long story short, re-installed Ubuntu and then ran mount again only to realize the ro flag is still set. Switched to su mode and ran mount to remount with rw permissions and now it seems to be sticking.

All this started because I was trying to run docker-machine to provision some docker containers on Azure.

Now, I have docker-machine running locally and trying to work my way through the labyrinth that is Linux
Old 03-20-2015, 05:36 PM   #5
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Means that if an error occurs on that drive during the mounting process, it will remount it in read only mode so you can continue to use the system. If your system keeps booting up in read only mode, you might want to take a look at your log files to see what error is causing it. There could be a corruption on the drive and the system is trying to protect itself.

Last edited by suicidaleggroll; 03-20-2015 at 05:38 PM.


bash, permission denied, ubuntu 14.04

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
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 09:34 AM
bash: ./a.out: Permission denied ...... Debojit777 Linux - Newbie 11 11-07-2011 11:03 AM
bash: /etc/ Permission denied theKbStockpiler Linux - General 5 09-11-2010 06:01 PM
-bash: cd: test/: Permission denied Ejdaha Linux - Newbie 5 09-17-2009 08:48 AM
bash: Permission Denied Panagiotis_IOA Slackware 5 11-07-2006 11:25 PM > Forums > Linux Forums > Linux - Newbie

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

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