FS#72967 - [filesystem] [pambase] nsswitch.conf change breaks systemd-homed
Attached to Project:
Arch Linux
Opened by Hartmut Malzahn (hwm) - Friday, 10 December 2021, 09:03 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 17 October 2022, 17:15 GMT
Opened by Hartmut Malzahn (hwm) - Friday, 10 December 2021, 09:03 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 17 October 2022, 17:15 GMT
|
Details
Description:
On one machine, I am using systemd-homed for an encrypted home. The changed entry "shadow: files systemd" in nsswitch.conf breaks login with that id. Logging on using the console asks for the password twice, and remotely logging in using ssh gives the error message "Home of user hwm is currently not active, please log in locally first." because /home/hwm is not decrypted and mounted. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: Create a user using homectl, then try to log on by ssh |
This task depends upon
Try editing /etc/pam.d/system-auth:
Switch auth unix and systemd_home so that systemd_home is first and has success=2:
-auth [success=2 default=ignore] pam_systemd_home.so
auth [success=1 default=ignore] pam_unix.so try_first_pass nullok
auth [default=die] pam_faillock.so authfail
Add session systemd_home at the start of the session stack:
-session optional pam_systemd_home.so
session required pam_limits.so