From 9b97a8be2373325f925083157a677ef0a8a42a2d Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Tue, 19 Sep 2023 10:20:52 +0200 Subject: [PATCH] - add option --no-create-home to useradd to avoid warning --- scripts/pam_snapper_useradd.sh | 3 +-- scripts/pam_snapper_userdel.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/pam_snapper_useradd.sh b/scripts/pam_snapper_useradd.sh index bc9d82e1..fb04c8d8 100755 --- a/scripts/pam_snapper_useradd.sh +++ b/scripts/pam_snapper_useradd.sh @@ -13,8 +13,7 @@ CMD_BTRFS="/sbin/btrfs" CMD_SNAPPER="/usr/bin/snapper" CMD_EGREP="grep -E" CMD_PAM_CONFIG="/usr/sbin/pam-config" -CMD_USERADD="useradd" -CMD_USERDEL="userdel -r" +CMD_USERADD="useradd --no-create-home" CMD_CHOWN="chown" CMD_CHMOD="chmod" CMD_CPA="cp -a" diff --git a/scripts/pam_snapper_userdel.sh b/scripts/pam_snapper_userdel.sh index 41bdbfbd..9ee05619 100755 --- a/scripts/pam_snapper_userdel.sh +++ b/scripts/pam_snapper_userdel.sh @@ -13,8 +13,7 @@ CMD_BTRFS="/sbin/btrfs" CMD_SNAPPER="/usr/bin/snapper" CMD_EGREP="grep -E" CMD_PAM_CONFIG="/usr/sbin/pam-config" -CMD_USERADD="useradd -m" -CMD_USERDEL="userdel -r" +CMD_USERDEL="userdel --remove" CMD_CHOWN="chown" # SNAPPERCFGDIR="/etc/snapper/configs" -- 2.47.3