From 314425173afa8c9197008da938f281f9ab13bc6f Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 4 Jun 2024 08:37:43 +0700 Subject: [PATCH] Delete group too --- userclean.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/userclean.sh b/userclean.sh index 7ddc523..c16ea32 100644 --- a/userclean.sh +++ b/userclean.sh @@ -7,5 +7,6 @@ do if [[ "$d" =~ ^/home/ ]] && ! [[ -d "$d" ]]; then printf 'Directory %q missing for user: %q\n' "$d" "$u" userdel -r $u + groupdel $u fi done