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.
- First start your Raspberry PI
- Open a Terminal window and type the following command:
sudo su -
You should see something like this:
pi@raspberrypi:~ $ sudo su - root@raspberrypi:~#
- Now you are logged as root, meaning that it’s time to change the password by typing the following command:
In this case the username is pi. Therefore you should see something like this:
root@raspberrypi:~# passwd pi New password:
- 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:~#
- 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.