[SOLVED] Reset username from SSH

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
riley83
DD-WRT Novice


Joined: 22 Oct 2018
Posts: 32

PostPosted: Sun Aug 28, 2022 7:47    Post subject: [SOLVED] Reset username from SSH Reply with quote
Hi there!

I made a mistake sometime ago and changed my username now I can't remember it when trying to login to dd-wrt web gui.

I still have access to SSH to my router. Do anyone know if I can reset the password from SSH or somehow do a command at cli in the ssh.

Best regars
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Sun Aug 28, 2022 8:14    Post subject: Reply with quote
Code:
setuserpasswd username password


Note not all characters are allowed for username and password, depending on the build you are using

Latest build is 49934 which is recommended because of earlier safety problems


See also: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=139251&postdays=0&postorder=asc&start=15

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
riley83
DD-WRT Novice


Joined: 22 Oct 2018
Posts: 32

PostPosted: Sun Aug 28, 2022 17:40    Post subject: Reply with quote
egc wrote:
Code:
setuserpasswd username password


Note not all characters are allowed for username and password, depending on the build you are using

Latest build is 49934 which is recommended because of earlier safety problems


See also: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=139251&postdays=0&postorder=asc&start=15


Thanks mate:)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum