Interview practice question
Permission denied when running a script
Cloud & DevOps · Linux and Scripting · Beginner
You run ./deploy.sh and get "Permission denied". How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Missing execute bit → chmod +x.
- Check ownership/user.
- noexec mount option.
- Or run with bash deploy.sh.
- Avoid sudo as reflex.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.