sudo: PAM account management error: Error in service module

Solution Verified - Updated -

Issue

  • sudo fails with an error below:
$ sudo -l
sudo: PAM account management error: Error in service module
  • sudo fails via pam_krb5.so module 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content