remove use of password with sudo for the wheel group
This commit is contained in:
parent
ade8066221
commit
f349954492
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user