Broken your mac by removing the execute permissions on /bin/bash, or otherwise need to get shell access to fix something? (Say, for example, you were foolishly trying to patch shellshock). Don’t worry! It’s concerningly easy.
- Reboot your mac holding down
Cmd+R - Go Utilites → Terminal
- You’re currently in a recovery partition.
cd /Volumes/Macintosh HD/bin - Do whatever you need to do to fix your machine, e.g.
chmod a+x bash - Restart, and everything should be fine.