Read-only archive. These discussions are from Tracston's earlier
technical forum and are kept online because the answers are still useful.
New replies are closed. Need help with something like this?
Talk to us.
Question
23 Oct 2020
Problem
User wants to reset root password without old password available
Solution
- Reboot your computer / Turn your computer on.
- Hold down the Shift key at the start of the boot process to enable the GNU GRUB boot menu (if it does not show)
- Press ESC at the GNU GRUB prompt.
- Press e for edit.
- Use the Arrow keys to highlight the line that begins with kernel and press the e key.
- Go to the very end of the line and add rw init=/bin/bash
- Press Enter and then press b to boot your system.
- Your system will boot up to a passwordless root shell.
- Type in passwd yourusername
- Set your new password.
- Restart your system.
Need this fixed properly?
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →