SUSE Support

Here When You Need Us

Module is unknown and cannot login at the console

This document (7022033) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12

Situation

When logging into the ncurses console as root, an error is displayed "Module is unknown" and root cannot login. Other login methods seem to work, like ssh. The system log /var/log/messages shows the following:

2017-10-06T10:27:01.754068-06:00 sles12sp3 login: PAM unable to dlopen(/lib/security/pam_limits.so): /lib/security/pam_limits.so: cannot open shared object file: No such file or directory
2017-10-06T10:27:01.754981-06:00 sles12sp3 login: PAM adding faulty module: /lib/security/pam_limits.so
2017-10-06T10:27:02.761812-06:00 sles12sp3 login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)

The /etc/pam.d/login file shows the following:

session  required       /lib/security/pam_limits.so

Resolution

Provide a correct path to the pam_limits.so module. Edit /etc/pam.d/login and change:

session  required       /lib/security/pam_limits.so

to this:

session  required       pam_limits.so

Likewise, if the module name is incorrect, like pam_limit.so instead of pam_limits.so, the same error would occur.

Cause

Invalid PAM module path.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022033
  • Creation Date: 06-Oct-2017
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.