Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: /bin/myscript: permission denied

Tags:

linux

bash

ubuntu

I've added my folder's path to the bashrc, in linux mint 15. Which contains my scripts. My scripts supposed to work like the bash scripts, as I know. But every time I try to use one of my scripts the following error appears: bash: /bin/myscript: permission denied

And this is the export line:

export PATH=$PATH:/home/peter/myscripts/

I logged in as root.

like image 540
erbal Avatar asked May 04 '26 02:05

erbal


1 Answers

You might have forgotten to give your scripts execution permissions:

chmod a+x /path/to/the/script
like image 166
Alfe Avatar answered May 05 '26 18:05

Alfe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!