From 7fbc6d93701a5edda3c1e3594861af78a39c9089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Wed, 25 Sep 2024 07:12:53 +0200 Subject: [PATCH] troubleshooting: adjust home path in tip 44 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modify the home dir path in troubleshooting tip 44 to prevent files from being accidentally removed. userdel with force argument tries to remove home dir path "/" according to https://github.com/shadow-maint/shadow/issues/1050 Signed-off-by: Erik Sjölund --- troubleshooting.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/troubleshooting.md b/troubleshooting.md index 1dd1d29803cc..f3a8104d9e94 100644 --- a/troubleshooting.md +++ b/troubleshooting.md @@ -1517,8 +1517,7 @@ The following steps create the user _containers_ and assigns big subuid and subg 1. Create the user _containers_ ``` sudo useradd --comment "Helper user to reserve subuids and subgids for Podman" \ - --no-create-home \ - --home-dir / \ + --no-create-home \ --shell /usr/sbin/nologin \ containers ```