Get into Ubuntu when you lost your password

Tagged with ubuntu linux

Language: Plain

Provides a quick way to get full access to a machine if you forget your password.

View as text


1. Turn your computer on.
2. Press ESC at the grub prompt.
3. Press e for edit.
4. Highlight the line that begins kernel ........., press e
5. Go to the very end of the line, add rw init=/bin/bash
6. press enter, then press b to boot your system.
7. Your system will boot up to a passwordless root shell.
CAUTION: This is a FULL ROOT SHELL! You can damage your system if not careful!
8. Type in passwd <username>. Set your password.
9. Type in reboot.
Last updated at 19:51 PM on Dec 12, 2008 by Brian Hogan

SnippetStash costs money to host and develop. The service is free for everyone to use
but if you found it useful please consider making a small donation.