With authentication enabled, you must enter a username and password to access Privileged EXEC command mode from User-EXEC command mode. The username and password is the same username and password you used to Telnet or SSH to the switch.
Note
When you enable authentication for the Privileged EXEC CLI command mode, the changes do not affect any existing CLI sessions. For the changes to take effect, you must first log out from your current CLI session and log back in on a new session.enable
configure terminal
sys priv-exec-password
show sys priv-exec-password
Switch:1>enable Switch:1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch:1(config)#sys priv-exec-password