Hide Forgot
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
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.
Created attachment 1116660 [details] Load ypbind before nss-user-lookup.target Solves the issue mentioned in comment 4 .
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