• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 809
  • Last Modified:

RHEL5 - how to restrict cannot use previous password for 'root'

I tried to use the followings at '/etc/pam.d/system-auth' to restrict the account cannot reuse previous password.

password    sufficient    pam_unix.so md5 shadow nullok try_first_pass use_authtok remember=5

It works ok at the user account, but not for the 'root' account. Is it possible to restrict on 'root' as well ?
1 Solution
Usually password policy does not apply to root since it does not go through the same process as user password changes.
root running passwd is not prompted for the current password.

There are fewer people who have access to root (with sudo access to passwd should be restricted.)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now