Enter the global configuration mode.
|
configure terminal
|
-
|
Create an administrator user and enter the administrator user mode
|
local-user user-name class manager
|
Mandatory
By default, do not create the administrator user.
|
Configure the administrator user password
|
password 0 password
|
Mandatory
By default, the user does not have password.
|
Set the server type that the user can adopt
|
service-type { ssh | telnet | console | ftp | web}
|
Mandatory
By default, the user does not support any service-type.
|
Set the user role of the local user
|
user-role role-name
|
Optional
By default, do not configure the administrator role.
The priority of the administrator role is higher than the administrator level, that is, when the administrator user is configured with the role, the administrator authority is based on the administrator role.
|
Set the user group of the administrator user
|
group group-name
|
Optional
By default, do not configure the user group.
|
Configure the level of the login user authorization
|
privilege privilege-level-number
|
Optional
By default, the default level is 1.
|
Configure the command that the user automatically executes
|
autocommand command-line
|
Optional
By default, do not configure the command that the user automatically executes.
|
Configure the option that the user automatically executes the command
|
autocommand-option { nohangup [ delay delay-time-number ] |delay delay-time-number [ nohangup ] }
|
Optional
By default, disconnect after executing the command automatically and the delay time of automatically executing the command is 0.
|
Configure the life period of the user
|
password-control livetime user-live-time
|
Optional
By default, do not limit the life period of the user.
|
Configure the maximum times of the successive login authentication failure of the administrator user
|
password-control max-try-time max-try-time-number
|
Optional
By default, the user management does not limit the maximum try times.
|
Configure the maximum online quantity of one user
|
max-online-num user-number
|
Optional
By default, do not limit the maximum online quantity of one user.
|
Configure the file authority that the user can use
|
filesys-control {read | write | execute | none}
|
Optional
By default, the user owns the read, write, and execute file authorities.
|
Configure the directory provided by the device for the administrator to access or manage
|
work-directory directory
|
Optional
By default, it is /flash directory. Currently, the attribute only functions on the file directory of configuring ftp user login device.
|