sudo: PAM account management error: Error in service module
Issue
- sudo fails with an error below:
$ sudo -l
sudo: PAM account management error: Error in service module
- sudo fails via
pam_krb5.somodule and following error is logged in/var/log/messages:
Jun 16 09:50:05 rhel7u4 sudo: pam_krb5[12345]: error initializing kerberos: -1765328248 (Improper format of Kerberos configuration file)
Jun 16 09:50:05 rhel7u4 sudo: pam_krb5[12345]: error initializing Kerberos
Environment
- Red Hat Enterprise Linux 7
- pam_krb5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.