SIP
Password reset - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Installation and set up questions (https://nosack.com/sipforum/forumdisplay.php?fid=2)
+--- Thread: Password reset (/showthread.php?tid=16)



Password reset - aleluida - 2015 Oct 14

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


RE: Password reset - dan - 2015 Oct 15

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


RE: Password reset - aleluida - 2015 Oct 15

Thank you!!

I have it back now.

Regards