forgot password


9 posts
by anpiii » Thu Jun 27, 2013 9:25 pm
I am new to the Raspberry Pi world. I received my new Raspberry Pi, fired it up, completed the configuration exercise and shut it down. I tried to access it today and I could not logon. It would not recognize my password. What now?
Posts: 3
Joined: Thu Jun 27, 2013 9:14 pm
by nickwill2803 » Thu Jun 27, 2013 10:54 pm
anpiii wrote:I am new to the Raspberry Pi world. I received my new Raspberry Pi, fired it up, completed the configuration exercise and shut it down. I tried to access it today and I could not logon. It would not recognize my password. What now?


Presumably you changed the shipped password of "raspberry"?
Posts: 3
Joined: Thu Jun 20, 2013 1:14 am
by anpiii » Thu Jun 27, 2013 11:35 pm
Yes I did
Posts: 3
Joined: Thu Jun 27, 2013 9:14 pm
by mahjongg » Fri Jun 28, 2013 12:07 am
perhaps you had capslock on?
User avatar
Forum Moderator
Forum Moderator
Posts: 4506
Joined: Sun Mar 11, 2012 12:19 am
by totoharibo » Fri Jun 28, 2013 5:12 am
boot a live CD in a PC :

put the SD card in
mount the second partition of SD card on /mnt (per example)
as root (sudo) edit /mnt/etc/passwd

suppress x after your name (pi)
save file

close CDlive session and restart SD card on RPi

this may help : http://www.makeuseof.com/tag/how-to-res ... -password/
Posts: 795
Joined: Thu Jan 24, 2013 8:43 am
by Leo Rest » Fri Jun 28, 2013 5:26 am
Did you change the keyboard layout? as an example if you set the password to "password" using a German keyboard but the os is configured for UK you will actually have typed "pzssword" because a & z are transposed.
Hth
Posts: 34
Joined: Sun Jun 03, 2012 7:24 pm
Location: UK
by plugwash » Fri Jun 28, 2013 6:52 am
Heres what I do.

Insert SD card in a PC (a windows one is fine)
On the fat partition edit cmdline.txt and add " init=/bin/bash" to the end
Put the SD card back in the Pi and turn on. You should be dropped at a root prompt early in the boot process.
Make the root partition writable with the command "mount -o remount,rw /"
You can now use the passwd command as normal to change the password on any account.
When you are done use "exec init" to continue the boot process.
Forum Moderator
Forum Moderator
Posts: 1982
Joined: Wed Dec 28, 2011 11:45 pm
by DeeJay » Fri Jun 28, 2013 7:10 am
@anpiii

My suggestion is that since you have presumably done nothing 'important' on your Pi that you can't afford to lose, forget about trying to reset the password and simply re-install the operating system on the SD card.

Sooner or later you will need to do this anyway, so it's a useful thing to learn now.

The 'NOOBS' method of installing an Operating System, which is what you will install if you follow the links from http://www.raspberrypi.org/downloads has the added benefit of being able to recover a clean copy of the system without having the re-write the card again, just by holding down Shift when prompted during the boot sequence.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
User avatar
Posts: 1792
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK
by anpiii » Fri Jul 05, 2013 12:49 am
Thanks, It worked!
Posts: 3
Joined: Thu Jun 27, 2013 9:14 pm