Bug 2082843
| Summary: | pam_systemd(sshd:session): Failed to get user record: No such process | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Edgar Hoch <edgar.hoch> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | dtardon, fedoraproject, filbranden, flepied, lnykryn, msekleta, ryncsn, ssahani, s, systemd-maint, terry1, yuwatana, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-26 08:21:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Edgar Hoch
2022-05-07 18:58:31 UTC
I want to mention that the nis users are known to the Fedora 36 system. "finger myusername", "id myusername", etc. works. But login on the desktop fails. I have made additional tests:
After reboot, "userdbctl user myusername" fails ("User myusername does not exist").
But if I restart systemd-userdbd.service, then "userdbctl user myusername" prints a full list of user information, e.g. it works.
It seams to me that systemd-userdbd cannot access some services (?) that was not running while systemd-userdbd was started, but if it is restarted later, then it can access these services.
I think systemd-userdbd wanted to access ypbind, but ypbind is started after systemd-userdbd, and systemd-userdbd doesn't check later if ypbind will be available.
I have tried to create a dependency of systemd-userdbd on ypbind (After=ypbind.service), but this would create an unresolvable circular dependency, so this is no solution. Maybe I need a mechanism that restarts systemd-userdbd after ypbind has successful started and is bound to a nis server?
Or better, systemd-userdbd should check for available services not only during start, but also later?
*** This bug has been marked as a duplicate of bug 1831141 *** I am having effectively the same issue on Fedora37. In my case I am using KDE/Plasma with sddm under X11. In my case users authenticated using NIS can logon fine, but they have no access to audio. There is no /run/users/<userid> directory for them and XDG_RUNTIME_DIR is not set. Running "systemctl restart systemd-userdbd" fixes the issue. |