简体   繁体   中英

Permission Denied when trying to run knockpy.py in terminal ubuntu

I am trying to install and run knockpy.py but for some reason, each time I try to execute it, whether in sudo or not I get permission denied.

gp@ubuntu:~/knock/knockpy$ ./knockpy.py
bash: ./knockpy.py: Permission denied

I have installed knock from github already as you can see but still can not run the program. Am I doing something wrong? Please provide some assistance.

To run a script on Linux, you need to either :

  • ensure that the script is an executable. You can run chmod a+x ./knockpy.py in order to do so. Then call ./knockpy.py to run the script.
  • let the python interpreter execute the script by running the following command : python ./knockpy.py

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM