bekos
Posts: 31
Joined: Sun Oct 11, 2015 8:43 pm

Rpi password

Sat Feb 18, 2017 5:29 pm

I forgot Rpi password (Menu->Preferences-Raspberry PI Configuration)

Is there a process (sostware) to access it? or to reset ?

Thanks

k-pi
Posts: 930
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Rpi password

Sat Feb 18, 2017 6:49 pm

Passwords can be set by using the passwd command in Linux, you need to use sudo or be the root user. :)

User avatar
DougieLawson
Posts: 39182
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Rpi password

Sat Feb 18, 2017 7:13 pm

It's not easy.

You have to edit /boot/cmdline.txt and add

Code: Select all

init=/bin/bash
boot the machine use the bash shell that appears on the console to reset the password for pi, then undo the changes to /boot/cmdline.txt.

You can use the NOOBS config editor accessed by holding or tapping [SHIFT] during boot to add that parameter.
If the card has plain Raspbian do the edit with notepad++ on a Windows machine.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

bekos
Posts: 31
Joined: Sun Oct 11, 2015 8:43 pm

Re: Rpi password

Sun Feb 19, 2017 7:21 pm

DougieLawson wrote:It's not easy.

You have to edit /boot/cmdline.txt and add

Code: Select all

init=/bin/bash
boot the machine use the bash shell that appears on the console to reset the password for pi, then undo the changes to /boot/cmdline.txt.

You can use the NOOBS config editor accessed by holding or tapping [SHIFT] during boot to add that parameter.
If the card has plain Raspbian do the edit with notepad++ on a Windows machine.
thanks the password changed :P

tobyewhite
Posts: 30
Joined: Wed Sep 21, 2016 3:02 pm

Re: Rpi password

Sun Feb 19, 2017 7:42 pm

A good idea is to use github for all your projects- That way if anything bad happens you can always restore from your last git repo instead of losing everything!

Return to “Weather station”