anpiii
Posts: 3
Joined: Thu Jun 27, 2013 9:14 pm

forgot password

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?

nickwill2803
Posts: 3
Joined: Thu Jun 20, 2013 1:14 am

Re: forgot password

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"?

anpiii
Posts: 3
Joined: Thu Jun 27, 2013 9:14 pm

Re: forgot password

Thu Jun 27, 2013 11:35 pm

Yes I did

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 9565
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: forgot password

Fri Jun 28, 2013 12:07 am

perhaps you had capslock on?

totoharibo
Posts: 3289
Joined: Thu Jan 24, 2013 8:43 am

Re: forgot password

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/

Leo Rest
Posts: 34
Joined: Sun Jun 03, 2012 7:24 pm
Location: UK

Re: forgot password

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

plugwash
Forum Moderator
Forum Moderator
Posts: 3224
Joined: Wed Dec 28, 2011 11:45 pm

Re: forgot password

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.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: forgot password

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

anpiii
Posts: 3
Joined: Thu Jun 27, 2013 9:14 pm

Re: forgot password

Fri Jul 05, 2013 12:49 am

Thanks, It worked!

Return to “General discussion”

Who is online

Users browsing this forum: Google [Bot], klricks, nunocv, pipuppy, TudorJ and 60 guests