Linux Operating System (MOSC)

MOSC Banner

How to configure password history limit for Oracle Linux 8

edited Dec 16, 2023 11:12PM in Linux Operating System (MOSC) 5 commentsAnswered

Found the document How to Prevent Users From Repeating Last N Passwords When Changing the Password in Oracle Linux (Doc ID 2823470.1)

The content is as follow:

Modify the file /etc/pam.d/system-auth so that it includes the PAM module pam_pwhistory after the existing occurrences of the password requisite line:

...

password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=

password requisite pam_pwhistory.so use_authtok enforce_for_root remember=5

password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok

password required pam_deny.so

...

However, in Oracle Linux 8, there is a comment in /etc/pam.d/system-auth stated

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center