A network security engineer is hardening a Cisco IOS router for remote administrative access. The running configuration contains the following entries:
text
username opsadmin privilege 15 secret 9 eG8H 1 h8GzK2Pq...
username opsguest password 0 Cisco12345!
service password-encryption
!
line vty 0 4
exec-timeout 10 0
privilege level 5
login local
transport input ssh
Based on this configuration, which operational behavior will occur when users authenticate remotely via SSH?
- The account without an explicit privilege level enters privilege level 5 upon successful login because it inherits the line configuration, whereas the administrator account enters privilege level 15.Cevap
- BThe account without an explicit privilege level is restricted to privilege level 1 because line privilege level settings are completely bypassed when local authentication is enabled.
- CThe service password-encryption command automatically upgrades the cleartext user password to a Type 5 MD5 hash and re-encrypts the Type 9 secret into Type 7 format.
- DAuthentication fails for the administrator account because Type 9 scrypt passwords require AAA server authentication and are unsupported in the Cisco IOS local user database.
Cevap
The user account without an explicit privilege level definition inherits privilege level 5 from the line VTY configuration upon login, while the administrator account with privilege 15 specified in its username command overrides the line setting and enters privilege level 15 directly.
In Cisco IOS, when VTY lines are configured with 'login local' and a baseline 'privilege level X', any local database account that authenticates without an explicit privilege level defined in its 'username' statement will inherit privilege level X from the line. Accounts configured with an explicit 'privilege Y' attribute in the local database override the line setting and enter privilege level Y immediately upon successful authentication.
Adım Adım Çözüm
Anahtar Kavram
Interaction between local database username privilege settings, line VTY privilege levels, and Cisco IOS password hashing types