Single-type alphanumeric characters and " and ' and | and ? and single-byte symbols other than space
characters (32characters or less)
The first character must be a single-byte alphanumeric character
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Sets user information.
A maximum of 32 items of user information can be registered.
The following words cannot be registered as user names.
lp, adm, bin, ftp, gdm, man, rpc, sys, xfs, halt, mail, news, nscd, sync, uucp, root, games, daemon, gopher, nobody, ftpuser,
mtsuser, rpcuser, mailnull, operator, shutdown
[Note]
If the password was encrypted by the
password-encryption
command, it is shown in the configuration in the form "
username
username
8 password
password
."
The user cannot enter the password in this form when making configuration settings from the command line.
[Example]
Set the user "
user1234
".
SWR2311P(config)#username user1234
Grant privileges to user
user1234
and specify a password.
SWR2311P(config)#username user1234 privilege on password user_pass
4.2.2 Show login user information
[Syntax]
show
users
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode, global configuration mode
[Description]
Shows information on the current logged-in users.
The following items are shown.
Item
Description
Line
Shows the login method.
con 0
is the serial console port
vty N
is the VTY port
http N
is the WebGUI
Own
An
*
is shown for the line of one's own connection port.
User
Shows the currently logged-in user names.
Status
Shows the login status. If the user is in use, this indicates
Login
.
Login time
Shows the login time.
IP address
Shows the IP address of the connected user.
[Example]
Show login information for the users.
SWR2311P>show users
Command Reference | Maintenance and operation functions |
29