庆典:/斌/的MyScript:权限被拒绝 [英] bash: /bin/myscript: permission denied
本文介绍了庆典:/斌/的MyScript:权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经添加了我的文件夹的路径的.bashrc,在Linux Mint的15里面包含我的脚本。我的脚本应该喜欢的bash脚本的工作,因为我知道。但每次我试图用我的剧本之一时,出现以下错误:的bash:/斌/的MyScript:权限被拒绝
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
这是汇出行:
export PATH=$PATH:/home/peter/myscripts/
我以root身份登录。
I logged in as root.
推荐答案
您可能忘记给你的脚本执行权限:
You might have forgotten to give your scripts execution permissions:
chmod a+x /path/to/the/script
这篇关于庆典:/斌/的MyScript:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文