Doesn't seem to work? I tried replacing admin with my name and that didn't work, this os really like the admin for password. I can change this in the GUI but don't want to... Long story to be posted later. But for now I need to write the admin password via the command line. ANY HELP???? Or am I an idiot, and not doing it right?
The previous commands resulted in having to telnet back into the router and login, admin was the password
Joined: 24 Apr 2011 Posts: 6 Location: Colorado Springs, CO, USA
Posted: Sun Apr 24, 2011 1:14 Post subject: WHAT?!
Doing what everyone else did:
setuserpasswd [username] [password]
This deleted *ALL* users in /etc/passwd except for "root" and "reboot". It does reset "root"'s password...sets "reboot"'s to the same one...and deletes all other entries in the file.
Anyone have any idea why this is happening and how I can get it to keep the rest of the entries?
I am using an ASUS RT-N16 w/ Mega, 14896, v24sp2, k26. I've installed OTRW and Samba 3.5. I'm using Putty SSH.
complete novice - i found this finally after searching google after i forgot the DD-WRT username i set through DD-WRT web interface
i used telnet to log in on Windows 7 and this command
setuserpasswd [username] [password]
where i simply replaced [username] for root and [password] for admin in the above command and it worked! i could login to web interface again and reset the password (i kept username as root this time!)
Joined: 10 Aug 2017 Posts: 70 Location: Fortalaza - CE - Brazil
Posted: Sun Feb 25, 2018 1:56 Post subject:
parsley1010 wrote:
setuserpasswd [username] [password]
IE: setuserpasswd root admin
Tested on V24 +
Thanks man! You ara save my life !
I was having this problem, but I'm not understanding how to change the password alone !? I did not change it, interesting that the password that I had configured, worked to log in via SSH.
What could have happened? _________________ Linksys WRT3200ACM - Lede - WRT1900ACS/V2 - 35034 - TP-Link Archer C7/V2 - 35034 - TP-Link Archer C50 V1(die)- Linksys EA-6200 (stock )
How do you get to this point though. When I telnet to my router I use the commandline 'telnet 192.168.1.1' and am then presented with my routers name (Linksys E4200) and a login prompt.
If I try logging in using root/admin it's incorrect. If I type in setuserpasswd it asks for a password. I can't get past the login/password stage in order to enter any other commands.
If I try logging in using root/admin it's incorrect. If I type in setuserpasswd it asks for a password. I can't get past the login/password stage in order to enter any other commands.
This thread regarded changing/resetting password (and GUI user) when already logged in to telnet (or ssh). There are cases where GUI login stops working but telnet/ssh is fine. If you can't log in to telnet/ssh nor GUI, then you have to reset; reset button should suffice - hold until the lights change (~10-30s). Don't 30-30-30 an ARM router. This may help:
https://wiki.dd-wrt.com/wiki/index.php?title=Hard_reset_or_30/30/30 _________________ #NAT/SFE/CTF: limited speed w/ DD#Repeater issues#DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo#
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
If I try logging in using root/admin it's incorrect. If I type in setuserpasswd it asks for a password. I can't get past the login/password stage in order to enter any other commands.
This thread regarded changing/resetting password (and GUI user) when already logged in to telnet (or ssh). There are cases where GUI login stops working but telnet/ssh is fine. If you can't log in to telnet/ssh nor GUI, then you have to reset; reset button should suffice - hold until the lights change (~10-30s). Don't 30-30-30 an ARM router. This may help:
https://wiki.dd-wrt.com/wiki/index.php?title=Hard_reset_or_30/30/30
OK thanks that clarified a lot and I have been able to get into my router now. Cheers and thanks for the help.