Agnus Dei (jackal) wrote,
Agnus Dei
jackal

How to reset your password on Ubuntu (When you don't know any of the passwords)

1- Boot the server (reboot)

2- Edit the kernel boot line inside grub and add to the end of the string "init=/bin/bash"

3- Once booted run the following command:
mount -o remount,rw /

4- Then you can run passwd on whatever username you want to reset the password
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 1 comment