26 votes
Accepted

Change/reset password WITHOUT monitor/keyboard

The password isn't actually stored anywhere on the system, a one way hash of it is. This means even if you have the hash, you won't be able to deduce the password. The hash itself is stored in /etc/...
user avatar
  • 56k
19 votes

Raspbian root default password

Raspbian by default is configured so that the root account can't be logged into using a password. This is done by starting with an entry in /etc/password which begins: root:x:0:0: The fields are ...
user avatar
  • 56k
19 votes

User and password

The username is "pi" and the password is "raspberry", you have misspelled the word "raspberry" by missing the p. If you still have issues, I would try re-downloading, re-formatting, and doing it ...
user avatar
14 votes

Default username/password for CentOS 7 on Raspberry Pi

Defaults are Username: root Password: centos
user avatar
13 votes

What password to use to log in after the first boot?

Distribution | Username | Password ---------------|------------|------------- Debian Squeeze | pi | raspberry Arch | root | root QtonPi | root | rootme ...
user avatar
  • 181
13 votes
Accepted

How do I reset the lost password of a Pi 4 running Ubuntu server?

I would put the sd card into another machine, mount the disk and edit the file /etc/shadow to remove the password; delete the characters between the first and second colons in the file. Save the file ...
user avatar
12 votes

Forgot password for username pi

The hashed password is stored in /etc/shadow. There is no efficient way to find out what the password is, by design. However, it is easy to reset as long as you have physical access. Start a Linux on ...
user avatar
  • 2,160
11 votes

How to change a password

Linux doesn't display anything when you type your password. no asterisks, no dots, no nothing. After entering passwd on the command line and pressing enter type your password at the command prompt, ...
user avatar
  • 622
10 votes

Where is the wifi password stored on Raspbian?

If you are using normal settings on Raspbian it will be in /etc/wpa_supplicant/wpa_supplicant.conf. It is stored in plain text, but only root can see it - you will need sudo to access the file. See ...
user avatar
  • 54k
9 votes

How do I change/recover my password?

As Jamie Cox commented in one answer and what actually worked for my problem, you might want to change the password for the pi user, so type sudo passwd pi otherwise you are just changing the ...
user avatar
9 votes

How to change a password

Do NOT type sudo passwd (unless you are trying to change the password of another user). The command to change your password is passwd
user avatar
  • 54k
8 votes

Raspbian root default password

To set a root password: Boot up and login normally. Run:sudo passwd root Type in the new password for root as prompted Source: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=5056&...
user avatar
8 votes
Accepted

I have just returned to my Raspberry Pi after a year and can't remember my login

As it turns out, you don't have to flash your RPi to recover from this. In fact, you don't need another Linux system at all, all you need is another SD card flashed with your RPi OS flavor of choice ...
user avatar
6 votes

What password to use to log in after the first boot?

Beware if you are using a German keyboard: In this case you have to use pi / raspberrz
user avatar
  • 169
6 votes

Change/reset password WITHOUT monitor/keyboard

You don't have to create a temporary user on a different system to generate a password hash. You can do it without root access by running: openssl passwd -salt "salt" "password" ...
user avatar
5 votes
Accepted

How can you recover your password?

Unfortunately, as pointed out by goldilocks, you cannot get the text of your old password. You can, however, reset your password by booting directly into the root shell (assuming you have physical ...
user avatar
  • 176
5 votes

what is password with new installation

root user on Raspbian doesn't have a valid password at all. This is an intentional security measure which prevents someone from logging in as root to your board. Raspbian comes with a default pi user ...
user avatar
5 votes
Accepted

Where can I find the /.ssh/known_hosts file on my rpi3?

That file is not on rpi 3 you are trying to connect to, but on the computer where you are trying to connect from (Ubuntu?). Just run ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.1.234 ...
user avatar
  • 506
4 votes

How can you recover your password?

You cannot because the password is not stored anywhere. Secure passwords systems use a one way hash algorithm. Such an algorithm will always produce the same output given the same input, but it is ...
user avatar
  • 56k
4 votes

Raspbian root default password

Raspbian does NOT have a root password. It differs from Ubuntu in that respect. You can create a root password, but AFAIK that requires sudo. The best bet is to edit the files by mounting the SD Card ...
user avatar
  • 54k
4 votes

Protect my motion webcam stream with a password (motion.conf)

To setup a username and password with motion, you need to edit motion configuration file. Steps Open terminal Type sudo nano /etc/motion/motion/conf Add in a new line stream_auth_method 1 Add in a ...
user avatar
  • 41
4 votes
Accepted

Changing RetroPie SSH password

As RetroPie is built upon Raspbian most commands that work on Raspbian will work on RetroPie. So to change the password for the logged in user use the passwd command and follow the prompts. You ...
user avatar
4 votes

I have forgotten my Windows 10 IoT password how can I reset it?

I also thought I forgot the password, but I found I never changed it. The default password is 'p@ssw0rd'. The key to remember is you have to include the machine name in the username field. For ...
user avatar
  • 41
4 votes
Accepted

Forgot password for username pi

to reset your password: Power down and pull the SD card out from your Pi and put it into your computer. Open the file 'cmdline.txt' and add 'init=/bin/sh' to the end. This will cause the machine to ...
user avatar
  • 56
4 votes
Accepted

Disable Single User Mode

Put the data you're trying to protect on a separate partition and encrypt it. Typical users will want to encrypt /home. You could also encrypt the root partition itself, though that will be more ...
user avatar
3 votes

Protect my motion webcam stream with a password (motion.conf)

netcam_userpass is to connect motion to a webcam that is protected by a username and password. This can happen for instance, if you are running a webcam program on a cellphone and have set a username/...
user avatar
  • 131
3 votes

How do I change/recover my password?

I assume you have physical access to your SD. Create new password: openssl passwd -6 -salt salt hello-world You will receive something like: $6$salt$phlWRlSMVXZ1JJxGL/j5ANI....
user avatar
3 votes
Accepted

How do I force SSH to use password, not rsa key?

In the article, one of the things mentioned is disabling password login: PasswordAuthentication no Commenting the line or changing the value to yes permits password login again.
user avatar
3 votes
Accepted

System Calls From C Code

If you need to provide input for a command, you should do it via input substitution or pipes, like this: system("echo 123456 | gpg --passphrase-fd 0 gpgTest.py.gpg"); system("gpg --passphrase-fd 0 ...
user avatar
3 votes
Accepted

Why do I have 3 different pi users?

When you type sudo passwd you are running the passwd command as the root user, and you are therefore changing the password of the root user, not of the user pi. Only the third time, when you changed ...
user avatar
  • 5,013

Only top scored, non community-wiki answers of a minimum length are eligible