mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-06-10 17:16:00 +08:00
fix: Can not use sudo when root
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
97726bebf8
commit
2b311fe7ef
@ -17,6 +17,10 @@ fi
|
||||
printf "\"%s\" ALL = (root) NOPASSWD:ALL\n" "${container_user_name}" >> /etc/sudoers.d/sudoers
|
||||
fi
|
||||
|
||||
chmod 440 /etc/sudo.conf
|
||||
chmod 440 /etc/sudoers
|
||||
chmod 440 /etc/sudoers.d
|
||||
|
||||
|
||||
printf "ACE: Setting up groups...\n"
|
||||
# If not existing, ensure we have a group for our user.
|
||||
|
Loading…
x
Reference in New Issue
Block a user