I wanted to run a small test program, but if I execute it the terminal says:
./geany_run_script.sh: 5: ./geany_run_script.sh: ./main: Permission denied
------------------
(program exited with code: 126)
Press return to continue
You call in your script another file/script - ./main
. Be sure that you have permission to execute that file (in fact this is saying that exit code: 126). To do this, run the following command:
chmod +x /path/to/main
All I need to to solve Geany permission denied error is to specify the extension of the file that I need to execute in my case I want to execute python programming file e.g. *.py then I save it .py and execute the file by press F5 the permission denied gone.
.sh
filename extension and it did not change permission automatically, but see my comment on the question.
– jarno
Nov 24 '20 at 16:56
chmod +x
? – Seth Nov 02 '13 at 21:25ls -l
? – Braiam Nov 02 '13 at 21:45