👷 user: sync groups and sudoers group with our installer

This commit is contained in:
Vladislav Nepogodin 2024-06-29 03:45:49 +04:00
parent 32393932e9
commit 0a4d7df310
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -478,9 +478,9 @@ void create_new_user(const std::string_view& user, const std::string_view& passw
.username = user,
.password = password,
.shell = shell,
.sudoers_group = "sudo"sv,
.sudoers_group = "wheel"sv,
};
const std::vector default_user_groups{"sudo"s, "storage"s, "power"s, "network"s, "video"s, "audio"s, "lp"s, "sys"s, "input"s};
const std::vector default_user_groups{"wheel"s, "rfkill"s, "sys"s, "users"s, "lp"s, "video"s, "network"s, "storage"s, "audio"s};
if (!gucc::user::create_new_user(user_info, default_user_groups, mountpoint)) {
spdlog::error("Failed to create user");
}