Browse Source

Remove sudo permission admin group on new setups

We delete the group before install anyway
Jaap Marcus 3 years ago
parent
commit
c90b5bad1d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      install/hst-install-ubuntu.sh

+ 2 - 0
install/hst-install-ubuntu.sh

@@ -1334,6 +1334,8 @@ fi
 if [ -n "$(grep ^admin: /etc/group)" ] && [ "$force" = 'yes' ]; then
     groupdel admin > /dev/null 2>&1
 fi
+# Remove sudo "default" sudo permission admin user group should not exists any way 
+sed -i "s/%admin ALL=(ALL) ALL/#%admin ALL=(ALL) ALL/g" etc/sudoers
 
 # Enable sftp jail
 echo "[ * ] Enable SFTP jail..."