Examples
# Set the guest attribute for user group test.
<Sysname> system-view
[Sysname] user-group test
[Sysname-ugroup-test] group-attribute allow-guest
local-user
Use local-user to add a local user and enter local user view.
Use undo local-user to remove the specified local users.
Syntax
local-user user-name
undo local-user { user-name | all [ service-type { ftp | lan-access | portal | ppp | ssh | telnet |
terminal } ] }
Default
No local user exists.
Views
System view
Default command level
3: Manage level
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 any backward slash (\), forward slash (/), vertical bar (|),
colon (:), asterisk (*), question mark (?), left angle bracket (<), right angle bracket (>), and at sign (@)
and cannot be a, al, or all.
all: Specifies all users.
service-type: Specifies the users of a type.
•
ftp: FTP users. This keyword is not supported in FIPS mode.
•
lan-access: Users accessing the network through an Ethernet, such as 802.1X users. This
keyword is supported only on SAP interface modules that are operating in Layer 2 mode.
•
portal: Portal users.
•
ppp: PPP users.
•
ssh: SSH users.
•
telnet: Telnet users. This keyword is not supported in FIPS mode.
•
terminal: Users logging in through the console, AUX, or Asyn port. In FIPS mode, this keyword
must be specified.
Examples
# Add a local user named user1.
<Sysname> system-view
[Sysname] local-user user1
[Sysname-luser-user1]
Related commands
•
display local-user
45