SUSE Support

Here When You Need Us

Only root can login

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

Environment

SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 9

Situation

When a user attempts to login, they get an error message “Login Incorrect” as soon as they type their username. The user is not given the chance to type their password. The root user is the only user that can login.

Resolution

  • Remove the /etc/nologin file.
  • Any service that includes pam_nologin.so in the auth pam stack of its /etc/pam.d/* file will be affected by the existence of the /etc/nologin file. 

Cause

If /etc/nologin file is present many services will deny access to the server. This file can contain a helpful message telling users why they cannot login, but can be left empty. In which case. only the “login incorrect” message is displayed.

Any service that includes pam_nologin.so in the auth pam stack of its /etc/pam.d/* file will be affected by the existence of the /etc/nologin file. 

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:7006487
  • Creation Date: 22-Jul-2010
  • Modified Date:19-Aug-2022
    • 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.