RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1217435 - ypbind.service should be loaded before nss-user-lookup.target
Summary: ypbind.service should be loaded before nss-user-lookup.target
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ypbind
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Petr Kubat
QA Contact: Vaclav Danek
Vladimír Slávik
URL:
Whiteboard:
Depends On:
Blocks: 1298243 1393868 1400961
TreeView+ depends on / blocked
 
Reported: 2015-04-30 11:03 UTC by Siteshwar Vashisht
Modified: 2020-09-10 09:22 UTC (History)
9 users (show)

Fixed In Version: ypbind-1.37.1-9.el7
Doc Type: Bug Fix
Doc Text:
Remote users' account settings are no longer reverted to default settings on restart due to *ypbind* Because of wrong service starting order, *ypbind* did not start before all Name Service Switch (NSS) look-up operations had been completed. This caused the user's account settings file to revert to default settings on restart for users fulfilling all of the following conditions: * Using Gnome Display Manager auto-login * Using NIS authentication * Home directory located on NFS The *ypbind* service file ordering has been fixed to make *ypbind* start before the user/group database is set up. The user's account settings file is now handled properly.
Clone Of:
: 1282440 (view as bug list)
Environment:
Last Closed: 2017-08-01 23:07:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Load ypbind before nss-user-lookup.target (434 bytes, patch)
2016-01-20 14:11 UTC, Matej Mužila
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1217439 0 medium CLOSED accountsservice.service should be loaded after nss-user-lookup.target 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHEA-2017:2202 0 normal SHIPPED_LIVE ypbind bug fix and enhancement update 2017-08-01 19:41:49 UTC

Internal Links: 1217439

Comment 1 Siteshwar Vashisht 2015-04-30 11:10:36 UTC
Description of problem:
ypbind.service should be loaded before nss-user-lookup.target.

If a gdm autologin user is authenticated using NIS and has it's home directory on NFS, it's '/var/lib/AccountsService/users/$USER' file gets overwritten on reboot. This issue was worked around by using below config file :

# cat /etc/systemd/system/accounts-daemon.service.d/nis-order-fix.conf
[Unit]
After=ypbind.service
After=nss-user-lookup.target
Wants=nss-user-lookup.target

Version-Release number of selected component (if applicable):
ypbind-1.37.1-7.el7.x86_64

How reproducible:
Always

Comment 4 Ray Strode [halfline] 2015-05-29 14:42:28 UTC
we can work around this in accountsservice, but ypbind should be fixed too, or other things aside from accountsservice may hit issues.

ypbind backs an nss module so it needs 

Before=nss-user-lookup.target

otherwise it will be started at the wrong point in boot up.

Comment 5 Matej Mužila 2016-01-20 14:11:17 UTC
Created attachment 1116660 [details]
Load ypbind before nss-user-lookup.target

Solves the issue mentioned in comment 4 .

Comment 20 errata-xmlrpc 2017-08-01 23:07:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2202


Note You need to log in before you can comment on or make changes to this bug.