erbal
erbal

Reputation: 727

bash: /bin/myscript: permission denied

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.

Upvotes: 2

Views: 19431

Answers (1)

Alfe
Alfe

Reputation: 59436

You might have forgotten to give your scripts execution permissions:

chmod a+x /path/to/the/script

Upvotes: 11

Related Questions