Howto Recover a Linux Root Password

This post is intended for users that forgot the root passwords or can’t use it due to other problems (corrupted file /etc/passwd or whatever). Can also be used to gain unauthorized to linux machines, but don’t do that.

What to do
Boot using a recovery CD or DVD.

Mount the drive

mount /mnt /dev/sda2

Replace the existing root password with an empty one

sed /^root/s/.*:root:/root::0:0:root:/ /mnt/etc/passwd

And reboot – and you are done ;-)

Related posts:

  1. Howto: How to Reset the MySQL Root Password
  2. Recover (Crack) a password from a Microsoft Access Database (mdb)
  3. Crack or Recover Password Protected Excel Spreadsheet
  4. How to hack Windows password with Ophcrack
  5. Crack or Recover Read-only Password Protected Word Document
  6. HackerGuide: Crack Password Encrypted Zip-files
  7. Howto Create a libstdc++ Compat on Debian (e.g. libstdc++-libc6.2-2.so.3)
  8. Ubuntu Howto: Install Xen
  9. Crack zip password with fcrackzip
  10. Password Manager – based on gnupg

Popular Related Items »

Leave a Comment