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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-18-2017, 12:29 PM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 3
Rep: 
|
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.
|
|
|
05-18-2017, 01:14 PM
|
#2
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by johndey
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.
|
|
|
05-18-2017, 01:49 PM
|
#3
|
Member
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 167
Rep:
|
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?
|
|
|
05-18-2017, 02:25 PM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
05-18-2017, 02:26 PM
|
#5
|
LQ Newbie
Registered: May 2017
Posts: 3
Original Poster
Rep: 
|
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.
|
|
|
05-18-2017, 04:28 PM
|
#6
|
LQ Newbie
Registered: May 2017
Posts: 3
Original Poster
Rep: 
|
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.
|
|
|
05-18-2017, 07:59 PM
|
#7
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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.
|
|
|
All times are GMT -5. The time now is 11:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|