Quellcode durchsuchen

installer: hide root group in the additional groups menu

regular users should not be using this group. instead, they should be
using wheel and/or sudo/doas/su
classabbyamp vor 2 Jahren
Ursprung
Commit
a6fcabc0ed
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      installer.sh.in

+ 2 - 2
installer.sh.in

@@ -745,8 +745,8 @@ menu_useraccount() {
             else
                 _status=on
             fi
-            # ignore the groups of existing users and package groups
-            if [[ "${_gid}" -ge 1000 || "${_group}" = "_"* ]]; then
+            # ignore the groups of root, existing users, and package groups
+            if [[ "${_gid}" -ge 1000 || "${_group}" = "_"* || "${_group}" = "root" ]]; then
                 continue
             fi
             if [ -z "${_checklist}" ]; then