Deploy the oracle database in Linux. After creating the oracle user, set a password for oracle, but the password reset fails. The prompt: the password contains the user name in some form. How to solve this problem? Let’s take a look at the detailed tutorial below.
1. Verify whether it is a password complexity issue
1. Use the command: vi /etc/login.defs to edit the file
2. No similar rules can be seen from the file content
3. Use the command to edit: vi /etc/pam.d/system-auth
4. No settings related to error reporting were found in the password policy
2. Forced password setting
Through Baidu, it turns out that such problems can be executed directly through another command. There are two ways to write.
The premise is that you must switch to the root user and execute with root permissions
method one:
echo oracle123 | passwd --stdin oracle
Reset the password for the oracle user to: oracle23
Prompt after reset: all authentication tokens updated successfully, indicating successful reset
Method 2: Use command
passwd --stdin oracle, enter it and press Enter. It prompts you to enter the password. Enter and the password is oracle123 and press Enter
.Prompt after successful execution: all authentication tokens updated successfully, indicating successful reset
The above is the detailed content of How to solve the problem of a prompt similar to the user name when resetting the password in Linux?. For more information, please follow other related articles on the PHP Chinese website!