Share this article
Improve this guide
Raspberry Pi password not working? Try these solutions
3 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
Raspberry Pi is a great single-board computer, very compact, lightweight ad easy to use. But, like any other system, it has its drawbacks, namely a few frequenterrors.
Among these,failureto recognize thepasswordon the firstbootor shortly after, as well as after ins. Sometimes, this happens at the first login: other times, after working fine with autologin for a while and the Pi asks again for credentials but won’t recognize thepassword.
If you happen to type it incorrectly, it will warn you. But if it fails to recognize it, it will just freeze.
What to do if the Raspberry Pi password is not working?
1. Modify the password file for new OS image
Then put the card into the PC again and delete theinit=/bin/shcombination you added. Save the changes and insert the card into the Raspberry Pi.
You should be able to use the newpassword.
2. Modify the password file for NOOBs
You should be able to log in with the newpassword. Then do the process backward, to delete theinit=/bin/shline.
How to change the password after installing TightVNC server
Users sometimes encountered a login issue after installing a VNC server. The Pi boots, the user can log in via SSH, but then another login window pops up, where the Pi won’t accept the default credentials.
The tested solution is to go to thehome directory, look for a file called.Xauthorityand change the owner using the following command:chown pi:pi /home/pi/.Xauthority
What I should also pay attention to?
We hope you found this guide helpful. If you did, or if you have any suggestions, don’t hesitate to use the comment section below.
[wl_navigator]
More about the topics:Raspberry Pi errors
Milan Stanojevic
Windows Toubleshooting Expert
Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.
Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Milan Stanojevic
Windows Toubleshooting Expert
Before joining WindowsReport, he worked as a front-end web developer. Now, he’s specialized in Windows errors & software issues.