What's new

<silly question alert> How do i change pswd on cli?

  • 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!

Greg Tee

New Around Here
I've somehow effed up my password while changing it in the webinterface... Don't ask me how, I use a password mngr and all should be ok. Anywho... I *do* still have access to the RT-AC87U thanks to my pubkey! yeah for SSH!

But.. How on EARTH do I change my password on the cli? I've tried chpasswd.sh but that does not seem to work :/ I would love to simply reset my /etc/passwd and /etc/shadow but can't find the originals..

And I don't want to bother with a complete reset... HALP! :)
 
I've somehow effed up my password while changing it in the webinterface... Don't ask me how, I use a password mngr and all should be ok. Anywho... I *do* still have access to the RT-AC87U thanks to my pubkey! yeah for SSH!
Hi,

Check this: nvram get http_passwd to get your current password in clear text...
With this: nvram set http_passwd=NewPassword you can set a new one.

With kind regards
Joe :cool:

PS.: Admins locking out themselves is a common issue, as we all make mistakes from time to time... :oops:
 
Check this: nvram get http_passwd to get your current password in clear text...
With this: nvram set http_passwd=NewPassword you can set a new one.

Yikes - I could see being able to write a new http_passwd, but that it's stored in plaintext and can be viewed - wow...
 
Hi,

Check this: nvram get http_passwd to get your current password in clear text...
With this: nvram set http_passwd=NewPassword you can set a new one.

With kind regards
Joe :cool:

PS.: Admins locking out themselves is a common issue, as we all make mistakes from time to time... :oops:

does not seem to fix it.. still get:
* Invalid username or password

*palms face*
Code:
nvram commit
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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