Login failing with error " Error in service module"

Solution Verified - Updated -

Issue

  • Login fails with error "Error in service module"
  • SSHD: Login is failing with below error.
Feb 23 20:25:59 server1 login: pam_limits(login:session): cannot read settings from /etc/security/limits.conf: No such file or directory
Feb 23 20:25:59 server1 login: pam_limits(login:session): error parsing the configuration file: '/etc/security/limits.conf'
Feb 23 20:25:59 server1 login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Feb 23 20:25:59 server1 login: Error in service module
  • Console login is failing due to above error.

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

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