R3166-R3206-HP High-End Firewalls Access Control Command Reference-6PW101
90
Parameters
ftp: Authorizes the user to use the FTP service. The user can use the root directory of the FTP server by
default.
ssh: Authorizes the user to use the SSH service. Support for this keyword depends on the device model.
telnet: Authorizes the user to use the Telnet service.
terminal: Authorizes the user to use the terminal service, allowing the user to login from the console or
AUX Asyn port.
portal: Authorizes the user to use the Portal service.
ppp: Authorizes the user to use the PPP service.
Description
Use the service-type command to specify the service types that a user can use.
Use the undo service-type command to delete one or all service types configured for a user.
By default, a user is authorized with no service.
You can execute the service-type command repeatedly to specify multiple service types for a user.
Examples
# Authorize user user1 to use the Telnet service.
<Sysname> system-view
[Sysname] local-user user1
[Sysname-luser-user1] service-type telnet
state (local user view)
Syntax
state { active | block }
undo state
View
Local user view
Default level
2: System level
Parameters
active: Places the local user in the active state to allow the local user to request network services.
block: Places the local user in the blocked state to prevent the local user from requesting network services.
Description
Use the state command to set the status of a local user.
Use the undo state command to restore the default.
By default, a local user is in the active state.
By blocking a user, you disable the user from requesting network services. No other users are affected.
Related commands: local-user.