mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-02-02 22:07:13 +08:00
👷 add missing group
This commit is contained in:
parent
f2f63a05b8
commit
80baab70e4
@ -472,6 +472,7 @@ void create_new_user() noexcept {
|
||||
|
||||
#ifdef NDEVENV
|
||||
// Create the user, set password, then remove temporary password file
|
||||
utils::arch_chroot("groupadd sudo", false);
|
||||
utils::arch_chroot(fmt::format(FMT_COMPILE("groupadd {}"), user), false);
|
||||
utils::arch_chroot(fmt::format(FMT_COMPILE("useradd {0} -m -g {0} -G sudo,storage,power,network,video,audio,lp,sys,input -s {1}"), user, shell), false);
|
||||
spdlog::info("add user to groups");
|
||||
|
Loading…
Reference in New Issue
Block a user