Update ADconnection.sh

This commit is contained in:
PierreGoude 2016-09-14 10:05:10 +02:00 committed by GitHub
parent 55246ee3a1
commit 8a5ab0be10

View File

@ -47,6 +47,8 @@ sudo echo "$NetBios"'\'"domain^admins" >> /etc/ssh/login.group.allowed
sudo echo "$NetBios"'\'"$myhost""sudoers" >> /etc/ssh/login.group.allowed sudo echo "$NetBios"'\'"$myhost""sudoers" >> /etc/ssh/login.group.allowed
sudo echo "%$NetBios"'\\'"domain^admins ALL=(ALL:ALL) ALL" >> /etc/sudoers sudo echo "%$NetBios"'\\'"domain^admins ALL=(ALL:ALL) ALL" >> /etc/sudoers
sudo echo "%$NetBios"'\\'"$myhost""sudoers ALL=(ALL:ALL) ALL" >> /etc/sudoers sudo echo "%$NetBios"'\\'"$myhost""sudoers ALL=(ALL:ALL) ALL" >> /etc/sudoers
sudo echo "%domain\ admins@$DOMAIN ALL=(ALL) ALL" >> /etc/sudoers.d/domain_admins
while true; do while true; do
read -p '$myhost is added to sudoers group, would you like to let additional group to have access (y/n)?' yn read -p '$myhost is added to sudoers group, would you like to let additional group to have access (y/n)?' yn
case $yn in case $yn in