Home  >  Article  >  System Tutorial  >  How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

PHPz
PHPzforward
2024-01-05 16:04:57944browse

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.

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

1. Verify whether it is a password complexity issue

1. Use the command: vi /etc/login.defs to edit the file

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

2. No similar rules can be seen from the file content

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

3. Use the command to edit: vi /etc/pam.d/system-auth

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

4. No settings related to error reporting were found in the password policy

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

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

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

method one:

echo oracle123 | passwd --stdin oracle

Reset the password for the oracle user to: oracle23

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

Prompt after reset: all authentication tokens updated successfully, indicating successful reset

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

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

.

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

Prompt after successful execution: all authentication tokens updated successfully, indicating successful reset

How to solve the problem of a prompt similar to the user name when resetting the password in Linux?

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete