How to change default username and password in Raspberry Pi

Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to change default username and password in Raspberry Pi

Post by Neo » Tue Jul 17, 2018 12:11 am

Default username and password in Raspbian OS is pi and raspberry. To confirm it, you may run

Code: Select all

whoami
in terminal. It is recommended to change this to something different.

Type

Code: Select all

passwd
in terminal and enter current password and then new password. That's it !

Then you can make the OS to prompt for login information at startup by going to Menu -> Preferences -> Raspberry Pi Configuration and tick off Login as user pi. In next topic, I'll write how to create a new user.
Post Reply

Return to “Raspberry Pi”