cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8044
Views
1
Helpful
5
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.

5 Replies 5

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

Blue_Bird
VIP
VIP

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?

manada
Level 1
Level 1

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.

 

 

Review Cisco Networking for a $25 gift card