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 1217439 - accountsservice.service should be loaded after nss-user-lookup.target
Summary: accountsservice.service should be loaded after nss-user-lookup.target
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: accountsservice
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-30 11:16 UTC by Siteshwar Vashisht
Modified: 2019-07-11 09:04 UTC (History)
1 user (show)

Fixed In Version: accountsservice-0.6.35-9.el7
Doc Type: Bug Fix
Doc Text:
Cause: Insufficient ordering constraints in start up services cause accountsservice to access users from nsswitch before nsswitch is fully available. Consequence: autologin may malfunction at start up if it's configured for a network user account. Fix: Ensure correct ordering of the accountsservice with nsswitch services by using an Before=nss-user-lookup.target in the accountsservice systemd unit file Result:
Clone Of:
Environment:
Last Closed: 2015-11-19 08:28:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1217435 0 medium CLOSED ypbind.service should be loaded before nss-user-lookup.target 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2015:2157 0 normal SHIPPED_LIVE control-center bug fix and enhancement update 2015-11-19 08:48:59 UTC

Internal Links: 1217435

Description Siteshwar Vashisht 2015-04-30 11:16:13 UTC
Description of problem:
accountsservice.service should be loaded after 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):
accountsservice-0.6.35-7.el7.x86_64

How reproducible:
Always

Additional info:
Upstream patch at http://cgit.freedesktop.org/accountsservice/commit/?id=3d6d125917073b06849c336c93e475a5a43c0dd9

Comment 1 Ray Strode [halfline] 2015-04-30 21:11:47 UTC
note if we don't fix ypbind, to get started before nss-user-lookup.target then we'll need to have After=ypbind.service as well (like mentioned in the workaround in comment 0).

Comment 2 Ray Strode [halfline] 2015-06-04 14:06:47 UTC
accountsservice is on the ACL now so devack+

Comment 7 errata-xmlrpc 2015-11-19 08:28:04 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://rhn.redhat.com/errata/RHBA-2015-2157.html


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