I finished my day4 task on DevOps 100 day practice but it was marked error that I have to redo it?



What could be the problem here?

A very common problem in misunderstanding what is meant by execute permissions.
Go ahead and try to execute it like it shows in your screenshot. You will almost certainly get Permission Denied.

Why? Because --x--x--x is not sufficient. It requires Read as well as Execute to be executable by all users.
See Problem with bash script - #10 by Alistair_KodeKloud