Run Active File in Terminal - Mac Admin (sudo) #1206
Unanswered
JohnEMagee
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Depends, I actually suggest to not use a file path with Admin privileges, but you can run as sudo vscode, and also set up it to run as admin with sudo as default. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Unfortunately as I’ve done it admin style from the beginning of using python it’s just easy right now, if I reset my set up I’ll look into the other way thanks for the suggestions
… On Mar 6, 2022, at 2:07 PM, Vasiliy Gualoto ***@***.***> wrote:
Well using sudo is a bad practice for security reasons, the best work around is to install the tools on paths which does not need sudo privilegies (not into /usr or /opt for example). However as I saw you also have those permissions on your home folder (documents) which is strange (may be M1 macs came with that feature).
So you have some options.
keep using sudo each time (please be sure you know what you are installing).
change the folder privilegies on your home folder (this is a little bit more harder, as Mac is based on Unix this <https://www.pluralsight.com/blog/it-ops/linux-file-permissions> guide should be helpful).
—
Reply to this email directly, view it on GitHub <#1206 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMIHJS6IBBVVOA463TRYX43U6UUBPANCNFSM5QAA3JQA>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The way my python and vs code set up is running, I can not use run active file automatically. The terminal error I receive is
zsh: permission denied: /Users/johnmagee/Documents/SolidityFCC/web3_py_simple_storage/deploy.py
Obviously when I type sudo python3 deploy.py it works fine but I have to do that manually. Is there a way to set up VS Code so that it has the admin permission to run in the terminal?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions