Hot Article
- Centos7 closes and restarts the system firewall and opens firewall ports
- How IID server uses Xshell to connect to Linux (centos) server
- BT panel forgets the background login URL, and the solution to the security entrance verification failure
- The php domain name points to ip, how to use the specified ip address to access a server in the url request domain name in curl mode
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- Error connecting to MySQL: Cant connect to MySQL server (10060)
linux how to change the user password (linux command to change the password)
- Author:Sven
- Category:Server Maintain
- Release Time:2023-03-07
In Linux, to change the user password, you can use the "passwd" command. Please follow the steps below.
1. Log in to the system as the root user.
2. Execute the following command, where "username" is the user name to change the password.
passwd username
3. You will be prompted to enter a new password. Please note that the password must comply with the system password policy (such as length, case, special characters, etc.).
4、Confirm the new password, the system will ask you to enter the new password again to confirm.
5、On completion, the system will prompt you to change your password successfully.
Please note that if you are changing the password of the current login user, you can omit the "username" parameter. In this case, the system will ask you to enter your current password and ask you to enter a new password and confirm it.
Also, for system security, it is highly recommended to change your password regularly and to use a strong password to protect your account.
related topic
- Centos7 closes and restarts the system firewall and opens firewall ports
- linux delete folder command
- What should I do if the proxy server link fails to respond?
- Merge the /home directory into the / directory under CentOS
- Windows firewall settings only allow specified IPs to access specified ports
- How to solve the Windows 10 prompt "The built-in administrator cannot activate this application"?