Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Local users

Direct answer

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.

When to use this

Use it when creating device accounts or a local fallback for AAA.

First 30 seconds

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.

Operational verification

local users → minimal break-glass → AAA primary

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Local user mistakes
  • username admin password ... (type 0/7) instead of secret with scrypt.
  • Shared generic accounts without accountability.
  • No login block-for against brute force.
  • Local accounts never removed when staff leave — prefer AAA with a single break-glass account.
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Scope / prerequisiteUse it when creating device accounts or a local fallback for AAA.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • 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

NeedConfiguration
Read-only operatorsusername noc privilege 1 algorithm-type scrypt secret ...
Limited command setprivilege exec level 5 show running-config + user at level 5
Full adminPrivilege 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
CommandShows
show loginWhether quiet mode is active
show login failuresFailed attempts by user and source
show usersWho is logged in now, from where
show running-config \| include usernameAccount 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 password instead of secret — those are type 0 or 7 and reversible.
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Confirmation

Confirm action

Continue?