This commit is contained in:
陆柯 2021-07-04 11:29:17 +08:00
parent 43b99a7ce1
commit 2c9eabb419

View File

@ -55,7 +55,6 @@ sed -i "s|/home/$NewUser:$|/home/$NewUser:/bin/bash/g" /etc/passwd
echo "<<< Allow sudo without password: %sudo ALL=(ALL:ALL) NOPASSWD:ALL"
chmod o+w /etc/sudoers
# emacs /etc/sudoers
sed -i "s|%sudo\s\+ALL=(ALL:ALL)\sALL|%sudo\tALL=(ALL:ALL) NOPASSWD:ALL|g" /etc/sudoers
chmod o-w /etc/sudoers