How to change the Raspberry Pi password

The default Raspbian SD card image configures a default user account called ‘pi’ with a password of ‘raspberry’. Every device using this image will therefore have the same username and password combination. This is great for quickly getting starting but isn’t very good practice from a security point of view.

You should therefore consider changing the default password as soon as possible. It’s easy to do and only takes a minute. Here are the simple steps you need to follow :

  1. From a command line prompt type passwd followed by the Enter key.
  2. Enter the current password followed by the Enter key.
  3. Enter the new password followed by the Enter key.
  4. Re-enter the new password followed by the Enter key.
  5. Your password has now been changed.

Your screen will look something like the screenshot below:

Changing your default password is important if your Raspberry Pi is connected to the Internet. SSH is enabled by default in the Raspbian image and this makes it vulnerable to hackers. Change your password and stay secure!

… oh just make sure you don’t forget the new password!

Here is a video showing the process :

This entry was posted in Raspbian and tagged , , , , . Bookmark the permalink.



2 Responses to How to change the Raspberry Pi password

  1. Matthew Manning says:

    Did you see this was on Adafruit site?

  2. Pingback: How to change the Raspberry Pi password #piday #raspberrypi @Raspberry_Pi « adafruit industries blog

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>