← All Kali Issues
Bash

Permission denied script

P Permission Medium

🔴 Error Message

bash: permission denied when running script

📖 What This Means

Script file not executable.

🔧 Step-by-Step Fix

  1. Make executable: chmod +x script.sh
  2. Or run with bash: bash script.sh
  3. Check shebang: head -1 script.sh