Skip to content
ohsudo

Tags

#chmod

./deploy.sh: Permission denied
Linux

"Permission denied" when running a script: 5 causes and fixes

Fix "bash: ./script.sh: Permission denied" and "bad interpreter" on Linux: execute bits, noexec mounts, directory permissions, Windows line endings and shebangs.

Beginner · 4 min read