Rickchip
Rickchip

Reputation: 411

How do I fix ngrok permission denied?

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

Answers (4)

Karm Patel
Karm Patel

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

Raul F. de Melo
Raul F. de Melo

Reputation: 81

I solved making it executable via chmod -x ngrok

Upvotes: 0

emma
emma

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

Rickchip
Rickchip

Reputation: 411

I fixed this by moving the ngrok exe to the /usr/local/bin folder.

Upvotes: 2

Related Questions