Skip to content

The Pi's Password

Hayden Cook edited this page Jan 9, 2026 · 1 revision

The Pi's Password

The Pi's default username and password are as follows:

  • username: pi
  • password: cpsvip42

Changing the Password

Having a default username and password is not very secure. Since we are connecting to it using a direct ethernet connection, this is not a huge concern, but since this is a security-focused class, it might still be a good idea to change the password to help prevent unauthorized access.

  1. In the Pi's desktop, open a terminal.
  2. Type passwd and click enter.
  3. Follow the on-screen prompts.

This will not change the password for the VNC server. To change this password:

  1. In the Pi's desktop, open a terminal.
  2. type sudo vncpasswd -legacy -service and click enter.
    1. If prompted, enter your new admin password that you set above
  3. Follow the on-screen prompts.

Note: While this will prevent others from logging into the Pi, someone could still take the SD card out and mount it on their computer to access the entire filesystem. Protecting against this requires a relatively complex solution that may be investigated by the security group in the near future.

Clone this wiki locally