What's new

Reset admin password from SSH?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Helipil0t

Occasional Visitor
Some how my keepass database missed an entry and I find myself locked out of my router's web UI. I have however full access using an ssh key (I've previously disabled password logins via ssh). Is there a way to reset the admin password while logged into an ssh session?

Would hate to have to resort to a factory reset.
I'd appreciate the help.
 
Try:
Code:
nvram set http_passwd="mypassword"
nvram commit

Unfortunately that didn't work. :(
Code:
nvram sow | grep http_passwd
showed no value has been set. Then I tried your suggestion and I'm still locked out of the WebUI. I didn't think the admin password was stored in plain text in NVRAM. I noticed my OpenVPN users are all in plain text.

Any other ideas?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top