From 10bf866807fbe8f64a5150f12d8fd11db71fcdbc Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Thu, 10 Mar 2022 16:14:42 +0700 Subject: [PATCH] Don't add root to any group This was introduced in 5989ec37de82ae728dcc6982580f6f2872a3727b, and probably that was not the intention. Adding root to groups doesn't break anything, but I don't think it makes any sense either. --- kali-config/common/includes.installer/kali-finish-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kali-config/common/includes.installer/kali-finish-install b/kali-config/common/includes.installer/kali-finish-install index 8890e7e..99d691a 100755 --- a/kali-config/common/includes.installer/kali-finish-install +++ b/kali-config/common/includes.installer/kali-finish-install @@ -64,7 +64,7 @@ configure_usergroups() { # wireshark - capture sessions in wireshark kali_groups="adm,kaboxer,dialout,wireshark" - for user in $(get_user_list); do + for user in $(get_user_list | grep -xv root); do echo "INFO: adding user '$user' to groups '$kali_groups'" usermod -a -G "$kali_groups" $user || true done