On Sun, Nov 06, 2022 at 03:38:56PM +0000, Albretch Mueller wrote: > $ usermod --move-home --home "${_NEW_HOME}" "${_WHMI}" > usermod: user user is currently used by process 1141 > > $ sudo ps -aux | grep 1141 > user 1141 0.0 0.1 15600 9144 ? Ss Nov05 0:00 > /lib/systemd/systemd --user > user 50636 0.0 0.0 6244 712 pts/0 S+ 06:42 0:00 grep 1141
I would strongly recommend that you log out of this user, before trying to relocate its home directory. Login as root, or login as some third user instead if you must use sudo.