LinuxQuestions.org
Visit Jeremy's Blog.
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 05-18-2017, 12:29 PM   #1
johndey
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
error=13 permission denied


The file I'm trying to run is in the root folder. Do I have to sudo to the root in order to change permissions? I am currently logged in as an admin.
 
Old 05-18-2017, 01:14 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,235
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
Quote:
Originally Posted by johndey View Post
Do I have to sudo to the root in order to change permissions?
no.
files in root's domain should have root permissions. don't change it.

unless you provide much more detail there's nothing more to say.
 
Old 05-18-2017, 01:49 PM   #3
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 166

Rep: Reputation: 31
What do you mean by "logged in as an admin"? In Linux root is the only superuser. Other users generally are restricted to their home folders until they run sudo while being in the sudo group.

If you run "sudo command" you run the command as root, no matter the command is run from a restricted user's session. That was your question I guess?
 
Old 05-18-2017, 02:25 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
There are three permissions, read, write and execute that are assigned to a file. Their are three sets of permissions, owner, group and user. Only the owner of the file can change its permissions, except root which can change any permissions.
 
Old 05-18-2017, 02:26 PM   #5
johndey
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
More information

I encountered a problem while trying to upload a Arduino sketch to a ESP8266-01S module on my mac OS 10.11.6 (El Capitan). The Arduino/Esp community said the problem was with a file named"esptool" and suggested replacing that file with one named, "esptool.py". Following the instructions for installing esptool.py, the file was installed in the following path:

Macintosh HD/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/esptool.py

The next step was to modify a file named, "platform.txt" with the path indicated above. However, when I tried to upload the sketch, I got this error message:

java.io.IOException: Cannot run program "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/esptool.py": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:207)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2135)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 10 more

Now I need to know what permissions need to be changed, and how to change them.
 
Old 05-18-2017, 04:28 PM   #6
johndey
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
In the "Get Info" window of the Mac OS Funder, I was able to change the permissions for all files in the path except for the first 2 folders. Apparently, I lack permission to make changes to those 2 folders.

Still getting same error message.
 
Old 05-18-2017, 07:59 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Check the perms on esptool.py. I'm not a Mac expert, but I think if you right click on the file there should a drop down with permissions on it.
 
  


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
Error when mounting nfs -- mount: Permission denied / rpc.gssd ERROR: No credential intmail01 Linux - Server 1 04-20-2015 03:17 AM
Permission denied error Completely Clueless Linux - Newbie 22 11-27-2013 05:30 PM
[SOLVED] error Permission denied areza Linux - Software 2 08-02-2013 01:00 AM
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
Permission Denied Error? your_shadow03 Linux - Newbie 5 12-10-2009 01:38 PM

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

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