File permissions and running scripts

Permission denied

Last task of the day: deploy the new website. A colleague left you a script:

Just run ./deploy.sh in your home directory and you're done!

You try it:

$ ./deploy.sh
-bash: ./deploy.sh: Permission denied

The script isn't allowed to run yet. Fix that, but safely: on a shared server, nobody else should be able to change your script.

Your goal

Make ~/deploy.sh executable for yourself without giving anyone else permission to change (write to) it. Then run it with ./deploy.sh. It creates ~/deployed.txt.

Starting Linux…

Stuck?

    Challenge not found

    This challenge doesn't exist (any more). See all challenges.