cisco — Establishing Username Authentication

• To provide a TACACS-like username and encrypted password-authentication system for networks that cannot support TACACS • To provide special-case logins: for example, access list verification, no password verification, autocommand execution at login, and “no escape” situations To establish username authentication, perform the following task: Procedure Configuring Authentication Establishing Username Authentication Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password, if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 Do one of the following:

• username name [nopassword | password password | password encryption-type encrypted password] • username name [access-class number] Example: Device(config)# username superuser password superpassword password 7 encrypted-password Device(config)# username user1 access-class access-user Establishes username authentication with encrypted passwords. or (Optional) Establishes username authentication by access list. Step 4 username name [privilege level] Example: Device(config)# username user1 privilege 5 (Optional) Sets the privilege level for the user. Step 5 username name [autocommand command] Example:

Device(config)# username user1 autocommand show users (Optional) Specifies a command to be executed automatically. Step 6 username name [noescape] [nohangup] Example: Device(config)# username user1 noescapee (Optional) Sets a “no escape” login environment. Step 7 end Example: Exits global configuration mode and returns to privileged EXEC mode. Configuring Authentication 32