Learn the default username and password on Raspbian for Raspberry Pi and how you can change your Raspbian password.
Like many devices, the Raspberry Pi comes with a default password for its standard operating system, Raspberry Pi OS (formerly known as Raspbian). And as you probably know, leaving the default password on anything is incredibly insecure.
Since it’s easy to find the stock credentials for all sorts of devices online, anyone with malicious intent will certainly try them first. If you forgot the default password for your Raspberry Pi, or never changed it, we’ll show you what you need to know.
The Default Username and Password on Raspberry Pi OS
According to RaspberryPi.org, the default Raspberry Pi login details are as follows: the default username is pi and the default password is raspberry.
To protect your Raspberry Pi from online threats, you should immediately change the default password. When you first boot up Raspberry Pi OS, its Welcome Wizard will prompt you to do, but you might still be using the default if you installed the OS a while ago or skipped changing it.
How To Change the Password
Here’s how to change your password on Raspberry Pi OS:
When logged in, open a Terminal window. Enter the passwd command and press Enter. The system will prompt you to confirm your current password. After this, enter your new password twice, pressing Enter after each entry. As is the Linux standard, you won’t see any characters on screen while entering this password.
If everything worked properly, you’ll see a password updated successfully message. This means that you’re good to go with the new password. Make sure you remember it!
For reference, if you ever need to remove the password from an account on your Raspberry Pi, you can use the command sudo passwd [USERNAME] -d. Of course, it’s wise to keep a password on all accounts.
You can add new users to your Raspberry Pi with the adduser [USERNAME] command. You’ll be prompted to set a password for each user.
Looking for more? Check out this guide to Raspberry Pi terminal commands.
Change the Default Password for Raspberry Pi OS: Success
Changing the default password is only one of the many ways you should ensure that your Raspberry Pi is secure so take a moment to check yours. It’s also important to update your Raspberry Pi regularly.
The Raspberry Pi may be the tech world’s prodigy, but it’s still vulnerable to remote attacks and intrusion. We show you how to protect it.
About The Author