How to change permissions on many folder with bash

I was trawling the web today and found this quick and painless bash script to change all the default folder premission back to default.

You could of course adapt this script to change ownership of folders by changing the chmod command to chown, but I’ll leave that one for you to work out.

Here’s another to change file permissions back to there default

Happy scripting 😉

Leave a Reply