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
- Error connecting to MySQL: Cant connect to MySQL server (10060)
- How to purchase a dedicated server
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
- How to solve the Windows 10 prompt "The built-in administrator cannot activate this application"?
- How to block foreign IP access on Linux server?
- inuxfind-name fuzzy query
- Merge the /home directory into the / directory under CentOS
- Expand the root directory space of the CentOS system, and expand the home directory space to the root directory
- linux delete folder command