Systemd with the homed use flag installs homectl and related software for setting up and managing ‘portable’ home directories. This home directory management approach has some advantages for me and I wanted to use it. However, it seems that the configuration in /etc/pam.d is not adapted to allow logging in (there are some changes to systemd_user, but these are apparantly for something else). My enhancement request is that the appropriate changes are made in /etc/pam.d to support logging in to ‘portable’ home directories, when systemd has the homed use flag activated. I looked at modifying /etc/pam.d files myself, but I do not have the requisite knowledge. Some resources I encountered: * https://www.freedesktop.org/software/systemd/man/pam_systemd_home.html * https://wiki.archlinux.org/index.php/Systemd-homed#Installation * https://wiki.odex.be/Usage/Configuration/S/Systemd-homed * https://archived.forum.manjaro.org/t/systemd-homed-setup/134074/2
zlogene and I are on this, but currently hitting some walls. Even using the same PAM config as other distros which have it working (e.g. Arch) as a last resort haven't worked, so I think I'm missing something.
Yea, I did this in the past but forgot how I fixed all the issues I encountered in the way
Made progress! Now working on a draft patch for pambase.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pambase.git/commit/?id=639b45ccb986de7314372a4a841e6f04c536c49a commit 639b45ccb986de7314372a4a841e6f04c536c49a Author: Sam James <sam@gentoo.org> AuthorDate: 2021-01-29 03:46:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-01-29 03:46:42 +0000 Add systemd-homed support Bug: https://bugs.gentoo.org/767784 Signed-off-by: Sam James <sam@gentoo.org> pambase.py | 1 + templates/system-auth.tpl | 6 ++++++ templates/system-session.tpl | 4 ++++ 3 files changed, 11 insertions(+)
pambase-20210201 has been released. For more information (for now) you can take a look at my reddit post[1]. [1] - https://www.reddit.com/r/Gentoo/comments/labx84/systemdhomed_is_now_alive/