Reputation: 411
I've installed ngrok and created an alias in my user folder. When I run the following command
./ngrok authtoken tokenhere
I get
./ngrok: Permission denied
Is there somewhere I need to set permissions?
Upvotes: 3
Views: 33916
Reputation: 294
below worked for me:
1)go to ngrok executable file(in my case /tmp/ngrok/ngrok
) & give executable permission using chmod +x ngrok
2)go to ./lib/python3.6/site-packages/flask_ngrok.py
3)comment the line os.chmod(executable, 777)
Upvotes: 1
Reputation: 409
I was getting the Permission denied
error message because I was running the command from a folder that only had a shortcut to ngrok instead of the actual executable. Silly mistake, but figured I would post in case anyone else does the same thing.
Upvotes: 2
Reputation: 411
I fixed this by moving the ngrok exe to the /usr/local/bin
folder.
Upvotes: 2