Hey, bash doesn’t exist

location: sydney ---

Just as a personal wrapup to bashgate (bashbleed, shellshock?), I uninstalled bash from my FreeBSD boxes. My scripts could all be run with sh anyway, and I hadn’t needed it for anything other than my cloud provider’s context system, but that’s for another post.

In doing so, I made one of my FreeBSD systems so secure, neither Clara or I could even log in! Tailing auth.log:

User X not allowed because shell /bin/bash does not exist
User Y not allowed because shell /bin/bash does not exist

One would be well served running chsh before removing your shell.

In any case, I’m using the system default tcsh again, and swapped it back on my Macs. Heck, I’ve even got it as my default shell on Debian (though isn’t bash on that system just dash anyway?). I can still write tcshrc from memory :).

Author bio and support


Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

You can leave me a comment by contacting me, and I might publish your thoughts. Please read the FAQs first though.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!