Create ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-15 14:09:51 +02:00 committed by GitHub
parent df476e058a
commit e8dd64ecad

View File

@ -138,7 +138,7 @@ read -p "Is your current administrator = "$admins" ? (y/n)?" yn
[Yy]* ) sudo echo "$admins" | sudo tee -a /etc/ssh/login.group.allowed;;
[Nn]* ) echo "please type name of current administrator"
read -p MYADMIN
sudo echo "$MYADMIN" | sudo tee -a /etc/ssh/login.group.allowed;;
sudo echo $MYADMIN | sudo tee -a /etc/ssh/login.group.allowed;;
* ) echo "Please answer yes or no.";;
esac
sudo echo "$NetBios"'\'"$myhost""sudoers" | sudo tee -a /etc/ssh/login.group.allowed