You are not logged in.

#1 2022-11-11 23:56:44

cloverskull
Member
Registered: 2018-09-30
Posts: 122

[SOLVED] Migrate from systemd-homed to traditional user management

EDIT - See solution below.
Hey friends, I've been experimenting for a while with systemd-homed and have gotten frustrated with how long it takes various home related services to stop at shutdown/reboot as well as what I feel is a bit of a misleading indication of drive space available. I'd like to migrate my user back to traditional home setup and disable systemd-homed completely. Has anyone done this? Is there a lot of risk? And what is the process?

Solution:

Create a new user the traditional way, and make the new user have the same groups and shell (zsh in my case) as the user you intend to migrate. For simplicity, I called this new user 'newuser'.

Login as the original user, and from the user's home directory do

homectl with <oldusername> -- rsync -aHAXv . /home/newuser/

Then, chown that directory and all of its contents to newuser.

Reboot, and instead of logging in as anyone, drop to a tty and login as root (or newuser and then sudo su - root). Remove the original (homed) user

homectl remove <oldusername>

Then you can disable the systemd-homed.service. Follow the arch linux users and groups manual to change the username for newuser and then rename the home directory. You should be good to go.

Last edited by cloverskull (2022-11-12 03:22:39)

Offline

#2 2022-11-12 00:33:25

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,647

Re: [SOLVED] Migrate from systemd-homed to traditional user management

Have never tried this myself as I've had no issues with systemd-homed but can you not just create a new user with the traditional tools and then copy your $HOME across?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-11-12 03:18:24

cloverskull
Member
Registered: 2018-09-30
Posts: 122

Re: [SOLVED] Migrate from systemd-homed to traditional user management

Figured this out, it wasn't too bad honestly. I'll update the initial post with the instructions and mark as [SOLVED].

Offline

Board footer

Powered by FluxBB