All jobs / DevOps / SRE / cloud / Linux

DevOps / SRE / cloud interview question · 0–1 years

`./deploy.sh` says “Permission denied” and `ls -l` shows `-rw-r--r--`. What do you do?

The strongest answer

Add the execute bit for the owner — `chmod u+x deploy.sh` (or 755 if others run it) — and commit the mode so the pipeline gets the same file

Why it works

Right — r, w and x are separate bits, and the file needs x to be run directly. Fixing the mode fixes it for everyone who checks it out.

What a good answer covers

Answers that fall short

Who gets asked this

More Linux questions