cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3506
Views
1
Helpful
4
Replies

Unable to change username & password

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.

4 Replies 4

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.

balaji.bandi
Hall of Fame
Hall of Fame

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 ?

https://community.cisco.com/t5/networking-knowledge-base/understanding-the-differences-between-the-cisco-password-secret/ta-p/3163238

Note : make sure do not delete any users which you are currently logged in using that username. (you lock yourself).

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Gopinath_Pigili
Spotlight
Spotlight

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 *******

MJ666
Level 1
Level 1

hi @Ganesh Devarshetty  did you got a solution on this issue?

Review Cisco Networking for a $25 gift card