This commit is contained in:
Luk Lu
2023-03-08 08:47:12 +08:00
parent 2d38dc0b68
commit e79356b310
12 changed files with 20 additions and 26 deletions

View File

@@ -48,7 +48,9 @@ if [ "$DebianVersionMain" == '10' ]
then
chmod o+w /etc/sudoers
## Debian 10 上,不存在 includedir需要自己添加。而 Debian 11.1 上,已经存在 @includedir
sed -i "s|#includedir /etc/sudoers.d|includedir /etc/sudoers.d|g" /etc/sudoers # allow users in /etc/sudoers.d/ folder to sudo
echo >> /etc/sudoers
echo includedir /etc/sudoers.d >> /etc/sudoers # allow users in /etc/sudoers.d/ folder to sudo
echo >> /etc/sudoers
chmod o-w /etc/sudoers
fi
echo