1. Problem description
When using the "password hash 123" command to set a password for a user, the following error occurred:
2. The cause of the error
- Sentence translation: Invalid ciphertext password
- Finding the reason: It prompts "the password in cipher text is invalid", that is to say, the format of the entered password is not correct. After querying the information, I found the explanation of the command, as follows:
The original command is: password {hash | simple} password
hash: means setting the user password in a hash mode
simple: means setting the user password in plain text
- Summary of the problem: The parameter following hash should be the hash value of the password. If the password 123 that I set at the beginning is not in accordance with the format, an error is reported.
3. Solution
- Use the "password hash" command
- You can also set a password for the user by using the "password simple plaintext password" command, as shown in the figure:
4. Supplement
The authentication password set in plain text or hashed password is saved in the configuration file in cipher text