Oracle Linux is an excellent operating system that can provide users with a high-performance, secure and reliable computing environment. While using Oracle Linux, users may need to change the password of root or other users. This article will introduce the process of changing password on Oracle Linux.
Before changing any user password, you must use the root account to log in to the system. If you are using another user account, please switch to the root account first.
To change the user password, run the passwd command as follows:
# passwd username
Where username is the user account name. If you want to change the root account password, you can omit the username, as shown below:
# passwd
At this point, you will be prompted to enter a new password. When entering your password, make sure it meets the following requirements:
- The password must be at least 8 characters long
- The password should contain at least one uppercase letter, one lowercase letter, one number and one special character
-The password cannot be the same as the password used before
Please enter the new password twice. The password will not be displayed on the screen during entry. Upon confirmation, the system will store the new password and update the user account password. You can now use this password to log in to the user account.
Note:
-If you are changing the password of the root account, please be very careful when changing the password. After changing the password of the root account, it has high permissions and can change any settings of the system.
- If you know another user's old password, make sure they know their new password if possible. Otherwise, you might lock their account without them knowing.
Summary:
Changing a user password in Oracle Linux is a very simple and basic operation. Sometimes data cannot be accessed, mainly due to lost password or the same password as used before, so it is very important to change the password. By following simple steps to change your password, you can ensure the security of your data and protect your system.
The above is the detailed content of How to change password on Oracle Linux. For more information, please follow other related articles on the PHP Chinese website!