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.


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


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/ /lib/security/ 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/
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/


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

session  required       /lib/security/

to this:

session  required

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


Invalid PAM module path.


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 Support Forums

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

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.

Open an Incident

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