Create ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-15 08:43:47 +02:00 committed by GitHub
parent 62078ec64a
commit d9f5e50347

View File

@ -133,7 +133,7 @@ else
echo "NOTICE! /etc/ssh/login.group.allowed will be created. make sure yor local user is in it you you could be banned from login"
sudo touch /etc/ssh/login.group.allowed
admins=$( cat /etc/passwd | grep home | grep bash | cut -d ':' -f1 )
echo "Is your current administrator = "$admins" ?"
read -p "Is your current administrator = "$admins" ? (y/n)?" yn
case $yn in
[Yy]* ) sudo echo "$admins" | sudo tee -a /etc/ssh/login.group.allowed;;
[Nn]* ) echo "please type name of current administrator"