Rescuing Linux: Difference between revisions

Line 46: Line 46:
<b>what if we can't use interactive mode?</b>
<b>what if we can't use interactive mode?</b>
===systemd emergency mode with a locked root account===
===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.
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 password.


==all my binaries are gone==
==all my binaries are gone==