pam_lastlog を使用する非アクティブユーザーの lastlog レコードをクリアする方法
Issue
- pam_lastlog を使用している場合、一定期間非アクティブだったユーザーは、システムにログインできません。
- pam_lastlog によって非アクティブに設定されると、ユーザーの認証が失敗します。
- /var/log/secure に以下のようなエラーが表示されます。
Jan 21 20:45:08 server login: pam_lastlog(login:auth): user username inactive for xxx days - denied
Jan 21 20:46:29 server login: pam_lastlog(login:auth): user username inactive for xxx days - denied
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.