From 68b8fced7c1b6e56e285ffc13e375a51979c3d0e Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Wed, 9 Oct 2019 11:43:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup-debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-debian.sh b/setup-debian.sh index 20fcf68..c4ad75a 100644 --- a/setup-debian.sh +++ b/setup-debian.sh @@ -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"