Linux - NewbieThis 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.
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.
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?
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,519
Rep:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.