SUSE Support

Here When You Need Us

'root' user is not able to change users' password on NIS Master

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

Environment

SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 15

Situation

System configured as NIS Master. The root user want to change NIS users' password using passwd command but getting: 

passwd: Failed preliminary check by password service

Resolution

To fix such issue and to change NIS users' password, kindly use 'yast users'. 
When running yast users you will get the following dialog: 

┌────────────────────────────────────────────┐
│You have installed a NIS master server.     │
│It is configured to use a different database│
│of users and groups than the local system   │
│database in the /etc directory.             │
│Select which one to configure.              │
│                                            │
│(x) Local (/etc directory)                  │ 
│                                            │
│( ) NIS (/etc/nis directory)                │
│                                            │
│ [OK] [Abort]                               │
└────────────────────────────────────────────┘

Select NIS and the select desired NIS user click on Edit and change the user's password. 

Cause

The used NIS YP Source directory is something different than /etc ; for example: /etc/nis or /var/etc ; the passwd command can only change password on /etc/shadow ; other files is not allowed. In SLES 12 the passwd command is coming from the shadow package.  This is needed to comply with SELinux and other security/government requirements.

If NIS was configured to use /etc as Source Directory then passwd will work. 

Additional Information


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:7023953
  • Creation Date: 19-Jun-2019
  • 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.