remove use of password with sudo for the wheel group

This commit is contained in:
Pratham Patel 2023-11-20 15:20:21 +05:30
parent ade8066221
commit f349954492
No known key found for this signature in database

View File

@ -21,6 +21,7 @@ USER_GROUPS='mock,wheel'
--groups "${USER_GROUPS}"
echo -e "${USER_PASSWORD}\n${USER_PASSWORD}" | passwd "${USER_NAME}"
sed -i "s/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/" /etc/sudoers
# Lock the root account
passwd -l root