From 0a4d7df31058010c4fe1b964fb1964c45cdf3168 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sat, 29 Jun 2024 03:45:49 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20user:=20sync=20groups=20and=20su?= =?UTF-8?q?doers=20group=20with=20our=20installer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 28f6e3c..aac6d44 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -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"); }