doc/user_manual: Fix content

Message ID 20250411090923.1355733-1-clara.kowalsky@siemens.com
State Accepted, archived
Headers show
Series doc/user_manual: Fix content | expand

Commit Message

Clara Kowalsky April 11, 2025, 9:09 a.m. UTC
The usermod command checks whether the user is currently running a
process before attempting to change the user's home directory.
This check will always fail for the root user (Error: usermod: user root
is currently used by process <x>). It is therefore not possible to
change the root user's home directory in this way.

Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
 doc/user_manual.md | 1 -
 1 file changed, 1 deletion(-)

Comments

Clara Kowalsky May 7, 2025, 12:46 p.m. UTC | #1
On 11.04.25 11:09, Clara Kowalsky wrote:
> The usermod command checks whether the user is currently running a
> process before attempting to change the user's home directory.
> This check will always fail for the root user (Error: usermod: user root
> is currently used by process <x>). It is therefore not possible to
> change the root user's home directory in this way.

Hi!

could you please integrate this patch? I need this for our isar training 
participants.

Best regards,
Clara

> 
> Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
> ---
>   doc/user_manual.md | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index d8e5c33e..845823bb 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -737,7 +737,6 @@ USER_root[inactive] = "30"
>   USER_root[uid] = "0"
>   USER_root[gid] = "0"
>   USER_root[comment] = "The ultimate root user"
> -USER_root[home] = "/home/root"
>   USER_root[shell] = "/bin/sh"
>   USER_root[groups] = "audio video"
>   USER_root[flags] = "create-home system force-passwd-change"
Baurzhan Ismagulov May 7, 2025, 1 p.m. UTC | #2
On 2025-04-11 11:09, 'Clara Kowalsky' via isar-users wrote:
> The usermod command checks whether the user is currently running a
> process before attempting to change the user's home directory.
> This check will always fail for the root user (Error: usermod: user root
> is currently used by process <x>). It is therefore not possible to
> change the root user's home directory in this way.
> 
> Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>

Applied to next, thanks.

With kind regards,
Baurzhan

Patch

diff --git a/doc/user_manual.md b/doc/user_manual.md
index d8e5c33e..845823bb 100644
--- a/doc/user_manual.md
+++ b/doc/user_manual.md
@@ -737,7 +737,6 @@  USER_root[inactive] = "30"
 USER_root[uid] = "0"
 USER_root[gid] = "0"
 USER_root[comment] = "The ultimate root user"
-USER_root[home] = "/home/root"
 USER_root[shell] = "/bin/sh"
 USER_root[groups] = "audio video"
 USER_root[flags] = "create-home system force-passwd-change"