Use it when creating device accounts or a local fallback for AAA.
Local users
Local users are accounts stored on the device (username <name> privilege <n> secret <password>) used for login or as fallback when AAA servers are unreachable.
1. Keep local users minimal (break-glass) with secret type 9/8.
2. Use AAA for daily access.
3. Remove leftover accounts.
4. Privilege levels deliberate.
5. Rotate passwords.
local users → minimal break-glass → AAA primary
Context & applicabilityCommon mistakes · platform/version boundaries
username admin password ...(type 0/7) instead ofsecretwith scrypt.- Shared generic accounts without accountability.
- No
login block-foragainst brute force. - Local accounts never removed when staff leave — prefer AAA with a single break-glass account.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- SSHv2 protects the session; VTY policy still controls who may connect and how users authenticate
- Use a dedicated management VRF/interface where supported and restrict sources with ACL/firewall policy
- Disable Telnet and unused HTTP services
- Prefer named administrators, AAA, least privilege, timeouts and audit logging
- Preserve an out-of-band recovery path before changing remote access.
show running-config | include username— local users- Local fallback account documented — break-glass
ReferenceWhat it is1 section · depth on demand
How it works
Local users are the fallback when AAA servers are unreachable and the only accounts on small devices. Store them with a strong one-way hash (algorithm-type scrypt = type 9), give them the least privilege needed, and configure AAA so local login is used only when the servers do not answer (aaa authentication login default group ISE local).
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Break-glass design
With central AAA, one local account remains for when TACACS+/RADIUS is unreachable:
username breakglass privilege 15 algorithm-type scrypt secret <long-random-secret>
aaa new-model
aaa authentication login default group TACACS-GRP local
aaa authorization exec default group TACACS-GRP local if-authenticated
aaa authentication login CONSOLE local
line con 0
login authentication CONSOLE
exec-timeout 10 0
line vty 0 15
transport input ssh
exec-timeout 10 0
local after the group is only tried when no AAA server answers — a reject from TACACS+ does not fall back. Keeping the console on local authentication means a broken AAA design cannot lock out physical access.
Least privilege for local users
| Need | Configuration |
|---|---|
| Read-only operators | username noc privilege 1 algorithm-type scrypt secret ... |
| Limited command set | privilege exec level 5 show running-config + user at level 5 |
| Full admin | Privilege 15 — only for the break-glass account |
Login protection and audit
login block-for 120 attempts 5 within 60
login quiet-mode access-class MGMT-HOSTS
login on-failure log
login on-success log
| Command | Shows |
|---|---|
show login | Whether quiet mode is active |
show login failures | Failed attempts by user and source |
show users | Who is logged in now, from where |
show running-config \| include username | Account inventory and secret type |
Lifecycle
- Rotate the break-glass secret on a schedule and after every use; store it in a vault, not in a shared document.
- Remove personal local accounts when AAA works; local users have no central logging or account disabling.
- Audit for
passwordinstead ofsecret— those are type 0 or 7 and reversible.
ReferenceConfiguration & state1 section · depth on demand
Configuration example
username admin privilege 15 algorithm-type scrypt secret <password>
aaa new-model
aaa authentication login default group tacacs+ local
aaa authorization exec default group tacacs+ local
line vty 0 15
login authentication default
transport input ssh
Documented example, not captured output. Keep one local break-glass account for when TACACS+/RADIUS is unreachable, use secret (hashed) instead of password, and avoid privilege 15 for read-only users.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → Device Hardening → Local users. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%