Home > System Tutorial > LINUX > body text

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

PHPz
Release: 2024-01-05 16:04:57
forward
922 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!