修正
This commit is contained in:
parent
c27c5c235d
commit
68b8fced7c
@ -26,7 +26,7 @@ sed -i "s/\/home\/$User:/\/home\/$User:\/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*/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/g" /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
|
||||
|
||||
echo ">>> disallow root login: #PermitRootLogin yes"
|
||||
|
Loading…
Reference in New Issue
Block a user