Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password reset
#1
This is embarrasing  Sad

How can I reset the password for the web access?

I set it long ago but lost it/don't remember it.

However, I can still get into the RPi through SSH.
Is there any way to reset it through SSH, maybe deleting or editing a config file to get it back to the default value?

Regards
Reply
#2
There are a couple of ways to do this.

The easiest is to re-name or delete the file sd.json in the data directory:
Code:
sudo mv SIP/data/sd.json SIP/data/sd.json-old

then restart the program with:

Code:
sudo service sip restart
or if you are still running ospi:

Code:
sudo service ospi restart
this will reset the password back to the original default "opendoor". It will also reset all other settings to their defaults.

The other way is to edit sd.json and replace the value of "password" to:

Code:
"ffe6679521586f16c3c9f44b7bca2fc375dfe283"
and replace the value of 'salt" with:

Code:
"\"4l~ZzzvtHDz9ci=@JpU*fa:%1c?4MRMT2^1?fsvqX1m_jJdZt^S72{4\"\"y|wc\\/"
then restart the program as described above.
This will reset just the password to "opendoor"

Dan
Reply
#3
Thank you!!

I have it back now.

Regards
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)