LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-19-2015, 03:21 AM   #1
rajurs
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.

Thanks
Raj

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

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
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, 05:53 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
What does the command mount say?
 
1 members found this post helpful.
Old 03-20-2015, 02:42 PM   #4
rajurs
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, 04:36 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
This
Quote:
errors=remount-ro
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.

http://ubuntuforums.org/showthread.php?t=845912

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


Reply

Tags
bash, permission denied, ubuntu 14.04



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 08:34 AM
bash: ./a.out: Permission denied ...... Debojit777 Linux - Newbie 11 11-07-2011 10:03 AM
bash: /etc/ld.so.conf: Permission denied theKbStockpiler Linux - General 5 09-11-2010 05:01 PM
-bash: cd: test/: Permission denied Ejdaha Linux - Newbie 5 09-17-2009 07:48 AM
bash: Permission Denied Panagiotis_IOA Slackware 5 11-07-2006 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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