Skip to content

Instantly share code, notes, and snippets.

@anugrahbsoe
Last active December 7, 2017 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anugrahbsoe/f1be72f8068cb26007e3ed8608ace5fc to your computer and use it in GitHub Desktop.
Save anugrahbsoe/f1be72f8068cb26007e3ed8608ace5fc to your computer and use it in GitHub Desktop.
reset a password linux
1. booting ubuntu
2. choose ubuntu advanced mode
3. from the boot menu, select recovery mode, which is usually the second boot option.
4. In this case, you want the Drop to root shell prompt
5. In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes:
mount -rw -o remount /
6. whoami
7. passwd username
<masukan password 2x>
8. exit
9. resume
10. ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment