How to reset Raspbian 10 (Buster) password on Raspberry PI 4

Hey! if you are reading this chances are you forgot the password to your Raspberry PI. Worry not though here is how to reset it on Raspbian 10 Buster using a Raspberry PI 4, I don’t really think the model of Raspberry PI matters but it’s just to give you a better idea of my environment.

  1. First start your Raspberry PI
  2. Open a Terminal window and type the following command:
sudo su -

You should see something like this:

pi@raspberrypi:~ $ sudo su -
root@raspberrypi:~#
  1. Now you are logged as root, meaning that it’s time to change the password by typing the following command:
passwd <username>

In this case the username is pi. Therefore you should see something like this:

root@raspberrypi:~# passwd pi
New password:
  1. Type your new password, then retype it, and you should see something like this:
pi@raspberrypi:~ $ sudo su -
root@raspberrypi:~# passwd pi
New password: 
Retype new password: 
passwd: password updated successfully
root@raspberrypi:~#
  1. BOOM! it’s done!

I decided to make this post because I read a lot of times about modifying some ‘cmdline.txt’ file that doesn’t exist in my memory card, so I just did it as I do it with other Linux operating systems.