local-user
Use local-user to add a local user and enter local user view.
Use undo local-user to remove local users.
Syntax
local-user user-name [ class manage ]
undo local-user { user-name class manage | all [ service-type { ftp | ssh | telnet | terminal } | class
manage ] }
Default
No local user exists.
Views
System view
Predefined user roles
network-admin
Parameters
user-name: Name for the local user, a case-sensitive string of 1 to 55 characters that does not contain the
domain name. It cannot contain back slash (\), slash (/), vertical bar (|), colon (:), asterisk (*), question
mark (?), left angle bracket (<), right angle bracket (>), or at sign (@), and cannot be a, al, or all.
class manage: Specifies the device management user. Device management users can configure and
monitor the device after login. They can use FTP, Telnet, SSH, and terminal services.
all: Specifies all users.
service-type: Specifies the local users who use a specified type of service.
•
ftp: FTP users.
ssh: SSH users.
•
telnet: Telnet users.
•
•
terminal: Terminal users who log in through console ports.
Examples
# Add a device management user named user1.
<Sysname> system-view
[Sysname] local-user user1 class manage
[Sysname-luser-manage-user1]
Related commands
•
display local-user
service-type
•
password
Use password to configure a password for a local user.
Use undo password to delete the password of a local user.
24