Skip to content

Instantly share code, notes, and snippets.

@xaratustrah
Last active August 27, 2018 12:02
Show Gist options
  • Save xaratustrah/d35e0d0a53952f3fefffeb0c72c9e225 to your computer and use it in GitHub Desktop.
Save xaratustrah/d35e0d0a53952f3fefffeb0c72c9e225 to your computer and use it in GitHub Desktop.
linux_password_recovery.md

linux password recovery

under debian

  • interrupt the boot process by any key
  • in the boot menu press 'e' for edit
  • add init=/bin/bash after ro quiet in the line that begins with linux
  • press ctrl-x
  • type mount -rw -o remount / dont't forget the trailing slash
  • use passwd to change to a new password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment