← 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
Found this useful? Share it.
Make it count. Join free to earn XP for what you read and solve, keep a streak, and track your progress.
Join free