void-mklive
void-mklive copied to clipboard
installer doesn't allow creation of user with no secondary groups
validate_useraccount() {
# don't check that USERNAME has been set because it can be empty
local USERLOGIN=$(get_option USERLOGIN)
local USERPASSWORD=$(get_option USERPASSWORD)
local USERGROUPS=$(get_option USERGROUPS)
if [ -n "$USERLOGIN" ] && [ -n "$USERPASSWORD" ] && [ -n "$USERGROUPS" ]; then
USERACCOUNT_DONE=1
fi
}
The above check (in installer.sh) prevents creation of user without secondary groups. I think USERGROUPS can be left unchecked like USERNAME.
creating a user with no other groups is inadvisable. you should at minimum have the user be a member of wheel and maybe users