From homectl:

Home directories managed by systemd-homed.service are usually in one of two states, … when “active” they are unlocked and mounted, and thus accessible to the system and its programs; … Activation happens automatically at login of the user

What does ‘login’ mean? For example, I created a user and tried to su -l test, but I got: cannot change directory to /home/test.

What is required to ‘activate’ a homed directory if not a login shell?

  • Tobias Hunger@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    11 months ago

    It is the same as with all logins: It goes through the Pluggable Authentication Modules. So you need a service that uses PAM (they basically all do for a long time now) and the configuration of that service needs to include homed as an option to authenticate users. Check /etc/pam.d for the config files.