Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-21 13:49:38 +02:00 committed by GitHub
parent f74524b14c
commit 769fb8e80c

View File

@ -133,6 +133,8 @@ 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" 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 sudo touch /etc/ssh/login.group.allowed
admins=$( cat /etc/passwd | grep home | grep bash | cut -d ':' -f1 ) admins=$( cat /etc/passwd | grep home | grep bash | cut -d ':' -f1 )
echo ""
echo ""
read -p "Is your current administrator = "$admins" ? (y/n)?" yn read -p "Is your current administrator = "$admins" ? (y/n)?" yn
case $yn in case $yn in
[Yy]* ) sudo echo "$admins" | sudo tee -a /etc/ssh/login.group.allowed;; [Yy]* ) sudo echo "$admins" | sudo tee -a /etc/ssh/login.group.allowed;;