7705 editing config.cfg using vi in order to update unknown password

Post Reply
cevo
Member
Posts: 2
Joined: 11 Jan 2019 19:02

7705 editing config.cfg using vi in order to update unknown password

Post by cevo » 11 Jan 2019 19:31

Hello,
Can't login, because I don't know the admin password.Is there a way to edit the password in config.cfg to update the password?
Here is what I tried:
Interrupted 7705 boot, logged in as admin/admin, can see the original configuration.
user is admin, I can see hash password but since it is not in plain text, don't know what it is.
Configured admin/password on another 7705. Used Apple123 for password for test purpose, then looked at the config, got the hash password.
Went back to first 7705, used vi to search and replace the hash password. After reboot, I tried admin/Apple123 but could not login.

Below is the user section in original config:
user admin
password YhCcqAjPWrbgsTODcbP.vk hash2
access console ftp snmp
no home-directory
no restricted-to-home
console
no login-exec
no cannot-change-password
no new-password-at-login
member administrative
exit

I went back to config.cfg, using vi, searched and replaced "no new-password-at-login" with "new-password-at-login" then saved and rebooted.
I was hoping that the router would ask me to enter my new password at login but that did not work either.
Any idea what else I can try?

Thanks,
Cevo

mivens
Member
Posts: 255
Joined: 28 Sep 2012 06:34

Re: 7705 editing config.cfg using vi in order to update unknown password

Post by mivens » 12 Jan 2019 11:44

Using vi have you tried changing the password line in the config to just

Code: Select all

 password Apple123
i.e. enter the cleartext, not the hash?

cevo
Member
Posts: 2
Joined: 11 Jan 2019 19:02

Re: 7705 editing config.cfg using vi in order to update unknown password

Post by cevo » 13 Jan 2019 01:42

Thanks for the suggestion mivens,

I tried Apple123 and "Apple123".
Rebooted, did NOT interrupt the boot. Tried admin/Apple123 but login failed.
I tried admin/admin and I was able to log in, I was not expecting that (as if I interrupted the boot).
Now, "admin# display-config" output is identical to the one when I interrupted the boot and logged in admin/admin.

user "admin"
password Apple123
access console ftp snmp
no home-directory
no restricted-to-home
console
no login-exec
no cannot-change-password
new-password-at-login
member "administrative"
exit


user "admin"
password "Apple123"
access console ftp snmp
no home-directory
no restricted-to-home
console
no login-exec
no cannot-change-password
new-password-at-login
member "administrative"
exit

Thanks,
Cevo

Post Reply

Return to “7705 SAR”