password
Syntax
password
undo password
View
Local user view
Default level
2: System level
Parameters
None
Description
Use password to set a password for a local user in interactive mode.
Use undo password to remove the password for a local user.
Valid characters for a local user password are from the following four types:
Uppercase letters A to Z
Lowercase letters a to z
Digits 0 to 9
32 special characters: blank space, tilde (~), back quote (`), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left parenthesis ("("), right parenthesis (")"), underscore (_), plus sign (+), minus sign (-), equal sign (=), left brace ({), right brace (}), vertical bar (|), left bracket ([), right bracket (]), back slash (\), colon (:), quotation marks ("), semi-colon (;), apostrophe ('), left angle bracket (<), right angle bracket (>), comma (,), dot (.), and slash (/)
A local user password configured in interactive mode must satisfy the password control requirement. For example, if the minimum password length is set to 8, the password must contain at least eight characters.
Examples
# Set a password for local user test in interactive mode.
<Sysname> system-view [Sysname] local-user test [Sysname-luser-test] password Password:********** Confirm :********** Updating user(s) information, please wait....