Do not be surprised, if you can’t change the default pi account password just by typing sudo passwd – it let you change the password, but it does not take any effect! So how actually you can change the default pi password? You need to type sudo raspi-config, then you will get the window as shown below:
![](https://www.rozenek.com/wp-content/uploads/2022/02/raspberry-pi-how-to-change-the-default-pi-password-01.png)
![](https://www.rozenek.com/wp-content/uploads/2022/02/raspberry-pi-how-to-change-the-default-pi-password-02.png)
![](https://www.rozenek.com/wp-content/uploads/2022/02/raspberry-pi-how-to-change-the-default-pi-password-03.png)
![](https://www.rozenek.com/wp-content/uploads/2022/02/raspberry-pi-how-to-change-the-default-pi-password-04.png)
![](https://www.rozenek.com/wp-content/uploads/2022/02/raspberry-pi-how-to-change-the-default-pi-password-05.png)