Rescuing Linux: Difference between revisions
| Line 40: | Line 40: | ||
==access sans password== | ==access sans password== | ||
Ideally, you can just provide <tt>init=/bin/sh</tt> on the kernel command line using grub's interactive mode. This will go through the end of the initramfs and invoke <tt>/bin/sh</tt> within the root filesystem. | |||
<b>what if we can't use interactive mode?</b> | |||
===systemd emergency mode with a locked root account=== | |||
If you've locked the root account with <tt>passwd -l</tt>, systemd's <tt>sulogin</tt> won't let you enter rescue mode. Use the instructions from "access sans password" above to get a shell if possible, and enable root with <tt>passwd</tt>. Reboot, and <tt>sulogin</tt> will admit you using the new passwork. | |||
==all my binaries are gone== | ==all my binaries are gone== | ||