Systemd homed
systemd-homed is a systemd service that manages user accounts in a different way.
See upstream documentation for details.
Installation
systemd-homed support in openSUSE Tumbleweed is work in progress
As soon as the aforementioned changes are in Tumbleweed systemd-homed can be installed using
# zypper in systemd-homed
Configuration
Enable the daemon:
# systemctl enable systemd-homed
Edit the passwd and group lines in /etc/nsswitch.conf to list systemd:
passwd: compat systemd group: compat systemd
If /etc/nsswitch.conf does not exist, copy it from /usr/etc/nsswitch.conf openSUSE:Packaging_UsrEtc
Enable the pam module
pam-config -a --systemd_home
Disable nscd. It is somehow incompatible
# systemctl disable --now nscd
Caveats
- when using a LUKS encrypted file on btrfs the default home file size is too big (85% of partition). Either discard has to be switched off or a smaller file size specified when creating the user https://bbs.archlinux.org/viewtopic.php?id=258382