Get the latest tech news
Converting Existing Users to systemd-homed
Traditionally on most Linux distributions, regular (human) users are managed via entries in /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow. With the advent of systemd-homed it might be desirable to convert an existing, traditional user account to a systemd-homed managed one.
Your new user account exists now, but it has an empty home directory. For that let’s mount the new home directory temporarily and copy the data in. When the rsync command completes the home directory is automatically unmounted again.
Or read this on Hacker News