Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/selfimpro_001/article/details/90486183
A root permissions to modify Username Password:
Execution: passwd root
, follow the prompts to enter a new password twice.
If the situation xshell connection with, the need to re-verify the new password.
Second, non-root permissions to modify Username Password:
Execution: passwd username
, follow the prompts to enter a new password twice. (username is the user name)