Skip to content

Commit

Permalink
troubleshooting: adjust home path in tip 44
Browse files Browse the repository at this point in the history
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
shadow-maint/shadow#1050

Signed-off-by: Erik Sjölund <[email protected]>
  • Loading branch information
eriksjolund committed Sep 25, 2024
1 parent af4b061 commit 7fbc6d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 7fbc6d9

Please sign in to comment.