From a03739b20476f5534d3948af4ee31a3ee02a1eff Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 5 Aug 2024 21:01:39 +0000 Subject: [PATCH] make sure the new user has a home --- .local/bin/chroot-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/chroot-gen b/.local/bin/chroot-gen index 2105c9c..440069b 100755 --- a/.local/bin/chroot-gen +++ b/.local/bin/chroot-gen @@ -11,7 +11,7 @@ CMDS=($CMDS) # convert to array if ! id "$USER" 2&>/dev/null; then echo 'INFO: User not found' echo 'Creating...' - useradd --shell /usr/bin/bash $USER + useradd --create-home --shell /usr/bin/bash $USER echo "Password for $USER:" passwd $USER fi