Skip to content

Commit

Permalink
👷 user: sync groups and sudoers group with our installer
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jun 28, 2024
1 parent 3239393 commit 0a4d7df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 0a4d7df

Please sign in to comment.