Are you logged out of your system because you don’t know the Raspberry Pi default login and are now searching for ways to reset it? If yes, then rest assured! We will provide you with all the information you need regarding resetting and securing your Raspberry Pi OS.
Like other devices, there is also an inbuilt Raspberry Pi default login when you install your Raspberry Pi OS. However, as these default logins are readily available on the internet, anyone with harmful intentions might try to access them. Thus, it’s not secure to keep working with the default login.
On that account, if you haven’t changed your default password yet. Then we will help you reset your password and everything related to it. So, what are you waiting for? Let’s get into it!
The Default Username and Password on all Raspberry Pi OS
Most of the Raspberry Pi operating systems have default passwords to access through SSH. For instance, in Raspberry OS, the default username is “pi” and the default password: “raspberry“. However, other distributions have their default usernames and passwords that are not similar always to Raspberry Pi OS.
The following table consists of the default usernames and passwords of the most renowned Raspberry Pi’s distributions:
|Raspberry Pi Distributions||Username||Password|
|Raspberry Pi OS||pi||raspberry|
|Arch Linux ARM||root||root|
How To Change The Raspberry Pi Default Password?
The Raspberry Pi default login is incorporated to make the setup easy for new users. Nevertheless, it’s better to change the default login to keep your system secure. With the recent update, Raspberry Pi OS prompts the users to set up a new password right after installation. However, if you still haven’t changed your password, this is how you do it.
Go through the following instructions to change your password:
- You can log in using the default username: “pi” and the default password: “raspberry”.
- After logging in, use the
passwdcommand to change your password instantly.
- Open the command line, type
passwd, and press “Enter.”
- You’ll get asked to enter your current password for verification.
- After verification, you can type in your new password and press “Enter.”
- Once you’ve successfully verified your password, it’ll get applied right away.
You’ll not be able to see any characters on the display while entering the password. So, don’t panic; just type in your password and press “Enter.”
How To Change Other User’s Passwords?
In case your user has “sudo” permissions (which the default user “pi” has), you can change any of the user’s passwords by following the steps mentioned below.
passwdon the command line along with the user’s name.
- Type in
sudo passwd jackto get permitted to set the user
- The process is similar to changing the (default) password of your own user.
You can even remove the user’s password by entering the command
sudo passwd bob -d in the command line. However, this practice is not recommended as it will weaken your system’s security.
How To Change The Root Password?
You don’t usually log in as a root user on startup. However, you can log in as a root user and change the root password on Raspberry Pi through the following steps:
- In the command line, type in
sudo suand press “Enter” to access as supervisor.
- Now use the
passwd rootcommand to get prompted to change the root password.
- Type in the new root password and press “Enter”.
How To Create A New User?
If you want to create new users on your operating system, then you can follow the three basic steps mentioned below:
Add new (Default) User Login in Linux or Raspberry Pi OS
- Type in
adduserin the command line and press “Enter”.
- Now, insert the new user’s name such as:
sudo adduser jackand press “Enter”.
- You’ll have to enter the login information for the new user “jack”.
- After inputting the required information, press “Enter” to continue.
- The new user will get added instantly.
Location of the Home Folder
- The newly added user will have a home folder in
- The default Raspberry Pi user’s home folder is located as
- The contents of
/etc/skel/will get transferred to the new user’s home folder.
- All the modifications you make to the files with extensions such as;
/etc/skel/will get automatically applied to the recently added users.
How To Add A New Member To The Sudo Group?
The default Raspberry Pi user belongs to a “sudo” group. Belonging to a “sudo” group allows the default user to run commands as a root (super) user. It also permits the user to switch to the root user with
Following instructions will help you add a new member to the sudo group:
- Type in
sudo adduser jackin the command line.
- The user “jack” will get prompted to enter their password to run “sudo.”
In case you want to remove this prompt:
- Create a sudoer file using
sudo visudo /etc/sudoers.d/010_jack-nopasswd.
- Place it in
- Type in
jack ALL= (ALL) NOPASSWD: ALLin a single command line.
- Save and exit.
After this process, your file will get checked for errors. In case there are any errors,
- A dialogue box will pop up stating, “what now?”. Press the “Enter” key.
- You’ll see various options; just press “e” to edit the sudoers file to fix the problem.
How To Delete A User?
If there are a lot of users on your system, and you feel like removing some of them. Then you can delete the unwanted users by just one command, which is as follows:
userdelin the command line and press “Enter”.
- You can add
-rin the same command to delete the user’s home folder as well.
sudo userdel -r jack.
- Be careful to not delete anything that you are not sure of.
Summing up, it is crucial to reset the Raspberry Pi default login (meaning its password) as soon as you access it the first time. In case you are new to this system and don’t know how to reset the password, then here in this article, we have covered all the basics of resetting the default password. Moreover, you’ll find some additional help and information as well.