Changing the default password

Every Raspberry Pi that is running the Raspbian operating system has the default username pi and default password raspberry, which should be changed as soon as we boot up the Pi for the first time. If our Raspberry Pi is exposed to the internet and the default username and password has not been changed, then it becomes an easy target for hackers.

To change the password of the Pi in case you are using the GUI for logging in, open the menu and go to Preferences and Raspberry Pi Configuration, as shown in Figure 10.1:

Figure 10.1

Within Raspberry Pi Configuration under the System tab, select the change password option, which will prompt you to provide a new password. After that, click on OK and the password is changed (refer Figure 10.2):

Figure 10.2

If you are logging in through PuTTY using SSH, then open the configuration setting by running the sudo raspi-config command, as shown in Figure 10.3:

Figure 10.3

On successful execution of the command, the configuration window opens up. Then, select the second option to change the password and finish, as shown in Figure 10.4:

Figure 10.4

It will prompt you to provide a new password; you just need to provide it and exit. Then, the new password is set. Refer to Figure 10.5:

Figure 10.5
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.70.101