cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4809
Views
0
Helpful
2
Replies

HOW TO DISABLE THE USERNAME AND PASSWORD

sujitsub
Cisco Employee
Cisco Employee

i am the beginner. i was trying to set and unset the username and password for the switch. But now i got stuck because of that. The following are the things that i have done. Is there a way to login into the switch by disabling the username and password ?

 

SG3(config)#aaa new-model
SG3(config)#username lab privilege 15 secret lab
SG3(config)#aaa authentication login default local
SG3(config)#end
SG3#wr
Building configuration...
[OK]
SG3#
SG3#quit

SG3 con0 is now available
Press RETURN to get started.

User Access Verification

Username: lab
Password:

SG3>
Password:
SG3#
SG3#
SG3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SG3(config)#no usern
SG3(config)#no username lab pa
SG3(config)#no username lab pass
SG3(config)#no username lab password
SG3(config)#no username lab password
This operation will remove all username related configurations with same name.Do you want to continue? [confirm]

SG3(config)#end
SG3#qu
*Dec 14 23:02:21.289 PDT: %SYS-5-CONFIG_I: Configured from console by lab on consoleit

SG3 con0 is now available

Press RETURN to get started.


User Access Verification

Username:
Username: lab
Password:

% Authentication failed












2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

as per the your decription you have remoted the username and password was removed, there is no method recover..until you have still access or you have other admin user account to access to the switch with config mode access.

 

if not you need to follow the reset proceedure. what model of device is this ?

 

BB

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

How to Ask The Cisco Community for Help

Hello,

 

in addition to Balaji's post, if you didn't do a 'wr' after removing the username. it might still be in the startup config. Try and reboot the switch...and check if you can login with the previously configured username/password...