10-13-2023 09:24 PM
When i'm trying to change the local username and password..giving below error.. is there any workaround.
username <username> privilege 15 secret <password>
ERROR: Can not have both a user password and a user secret.
Please choose one or the other.
Kindly help me.
10-13-2023 10:06 PM
you use same username for both command
add new user with secret password <<- this need as backup in case remove OLD username is not allow you to access anything.
remove the old username command then add it again with secret password.
10-13-2023 10:26 PM
here is the example - if you want to use for same username :
R1(config)#username xxxx privilege 15 password xxxxx
R1(config)#username xxxx privilege 15 secret xxxx
ERROR: Can not have both a user password and a user secret.
Please choose one or the other.
so you can have only 1 Either password or secret.
so understand what to be user password or secret ?
Note : make sure do not delete any users which you are currently logged in using that username. (you lock yourself).
10-13-2023 11:29 PM
Note that (unlike with the enable password and enable secret commands) you can’t have both the username password and username secret commands configured at the same time....
Router(config)#username user1 privilege 15 password xxxxx
Router(config)#username user1 privilege 15 secret xxxx
You can't use both command at the same time....remove the first command "no username user1 privilege 15 password xxxxx" and then configure with "username user1 privilege 15 secret xxxx"
Hope this soves the problem.....
Best regards
******* If This Helps, Please Rate *******
04-29-2024 02:31 AM
hi @Ganesh Devarshetty did you got a solution on this issue?
11-30-2024 02:03 AM
Hi,
It looks like you tried to edit the user who has previously created a password using the 'password' option, but now you are trying to change his password using the 'secrete' option — that's not going to work.
use this: username <username> privilege 15 password <password> to change his password
or
delete this user entirely (have the other admin user created in the system so you are not locked out yourself) using this command:
#no username <username> .
And recreate the user again using the secrete option:
username <username> privilege 15 password <password>
Cheers,
Adam T.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide