Password:
system-view
[HUAWEI]user-interface console 0 #进入console口
[HUAWEI-ui-console0]authentication-mode aaa #console启动aaa认证模式
Info: The password of CON0 will be changed. Please verify the old password.
Please enter old password: #密码验证
Warning: The level of the user-interface(s) will be the default level of AAA users, please check whether it is correct.
Info: The password was cleared.
Info: Succeeded in changing the authentication mode.
[HUAWEI-ui-console0]q #返回
[HUAWEI]aaa #进入aaa模式
[HUAWEI-aaa]local-user admin service-type terminal #启动admin用户终端登录模式
Info: After you change the rights (including the password, access type, FTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change.
[HUAWEI-aaa]local-user admin password irreversible-cipher admin123 #修改admin有用户密码
Info: After you change the rights (including the password, access type, FTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change.
[HUAWEI-aaa]display local-user username admin #显示admin用户信息
The contents of local user(s):
Password : ****************
State : active
Service-type-mask : M #(M)终端模式打开
Privilege level : -
Ftp-directory : -
Access-limit : -
Accessed-num : 0
Idle-timeout : -
User-group : -
Original-password : Yes
Password-set-time : 2022-12-08 07:02:06+08:00
Password-expired : No
Password-expire-time : -
[HUAWEI-aaa]local-aaa-user password policy administrator #进入Local-aaa-user密码策略管理员
[HUAWEI-aaa-lupp-admin]password alert before-expire 80 #全局密码80天到期
[HUAWEI-aaa-lupp-admin]aaa
[HUAWEI-aaa]display local-user username admin
The contents of local user(s):
Password : ****************
State : active
Service-type-mask : M
Privilege level : -
Ftp-directory : -
Access-limit : -
Accessed-num : 0
Idle-timeout : -
User-group : -
Original-password : Yes
Password-set-time : 2022-12-08 07:02:06+08:00
Password-expired : No
Password-expire-time : 2023-03-08 07:02:06+08:00
[HUAWEI-aaa]q
[HUAWEI]q
Username:admin #admin
Password: #密码
Warning: The initial password poses security risks.
The password needs to be changed. Change now? [Y/N]: n #没有强制修改
sy
Enter system view, return user view with Ctrl+Z.