You are not logged in.

#1 2014-01-17 22:39:21

4on6
Member
Registered: 2011-10-05
Posts: 172

[SOLVED] usermod can't change HOME because systemd --user uses process

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/bash

and

$ usermod -d /home/xy xy
usermod: user xy is currently used by process 198

and

$ ps 198
198 ? Ss 0:00 /usr/lib/systemd/systemd --user

I 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

#2 2014-01-17 22:56:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] usermod can't change HOME because systemd --user uses process

4on6 wrote:

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

#3 2014-01-17 22:59:42

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] usermod can't change HOME because systemd --user uses process

I see, thanks!

Offline

#4 2014-01-18 08:05:39

cccplex
Member
Registered: 2014-01-15
Posts: 7

Re: [SOLVED] usermod can't change HOME because systemd --user uses process

Have you tried logging out all your users and login with only root to the console?

Offline

#5 2014-01-18 09:42:53

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] usermod can't change HOME because systemd --user uses process

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!

Offline

#6 2014-01-18 09:52:17

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] usermod can't change HOME because systemd --user uses process

4on6 wrote:
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

Board footer

Powered by FluxBB