In this linux tutorial we will learn How to solve bash: ./yourScriptFile.sh: Permission denied in linux.
Contents of page >
- What is bash: ./yourScriptFile.sh: Permission denied in linux?
- What is solution to bash: ./yourScriptFile.sh: Permission denied in linux?
What is bash: ./yourScriptFile.sh: Permission denied in linux?
As the name (bash: ./yourScriptFile.sh: Permission denied
) suggest you do do not have sufficient permissions to access the shell script file.
What is solution to bash: ./yourScriptFile.sh: Permission denied in linux?
Let’s say your script file is in /opt/scripts/yourScriptFile.sh, then do following -
cd /opt/scripts
chmod u+x ./yourScriptFile.sh
And now you will have sufficient permissions to access the shell script file.
Summary -
In this linux tutorial we solved bash: ./yourScriptFile.sh: Permission denied in linux.
Having any doubt? or you liked the tutorial! Please comment in below section.
Please express your love by liking JavaMadeSoEasy.com (JMSE) on facebook, following on google+ or Twitter.
RELATED LINKS>
How to edit file in vi/Vim Editor in linux - Save and quit
Quitting vi/Vim Editor with - saving the file in linux
Exiting/ quitting vi/Vim Editor without saving the file
vi error - E37: No write since last change (add ! to override)
Labels:
Linux