Image by schuetz-mediendesign @ Pixabay
Bound to Nothing
Bash is overrated. /dev/null is much better. Add the following file as /etc/systemd/system/usr-bin-bash.mount:
|
|
Then run the following commands:
|
|
What it does
This creates a “bind” mount, mounting /dev/null on /usr/bin/bash, effectively
rendering bash unusable.
Why it works
Mounts don’t have to be done from /etc/fstab, you can create a systemd
.mount unit by hand as well. In fact, at startup and systemd reloads,
systemd-fstab-generator creates .mount units from /etc/fstab.
Putting your mount in static unit like this makes it harder for your cow-orkers to find, doubling your pleasure.
TL;DR
- Working bash
- Running system
- Fun