You are not logged in.
I just reinstalled Archlinux while keeping my old /home partition untouched. I added a new user xy and made /home/xy his HOME directory. However:
$ printenv HOME
/bin/bashand
$ usermod -d /home/xy xy
usermod: user xy is currently used by process 198and
$ ps 198
198 ? Ss 0:00 /usr/lib/systemd/systemd --userI don't know how this happened, since I gave the right /home/xy directory when creating the user xy. And I would like to know how I can change this settings - just killing process 198 did not help.
EDIT:
Sorry, somehow I double-posted this - how can I delete the other post without breaking the forum rules?
Last edited by 4on6 (2014-01-18 09:43:26)
Offline
EDIT:
Sorry, somehow I double-posted this - how can I delete the other post without breaking the forum rules?
No worries. Done. In the future, use the report link and drop the moderators a note.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I see, thanks!
Offline
Have you tried logging out all your users and login with only root to the console?
Offline
Have you tried logging out all your users and login with only root to the console?
No, I didn't, I only tried to kill the 'systemd --user' process. After a reboot this morning, with only root logged in, I could finally change the home directory.
Thanks!
Offline
cccplex wrote:Have you tried logging out all your users and login with only root to the console?
No, I didn't, I only tried to kill the 'systemd --user' process. After a reboot this morning, with only root logged in, I could finally change the home directory.
Thanks!
If you want to do it without reboot, log out of the user, log in as root, use loginctl (e.g. terminate-session) to remove all remaining traces and then call usermod.
Last edited by progandy (2014-01-18 09:53:55)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline