Create ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-14 09:25:29 +02:00 committed by GitHub
parent e7ae7ed5e7
commit 96e68fa000

View File

@ -129,6 +129,7 @@ sudo touch /etc/ssh/login.group.allowed
sudo echo "administrator" | sudo tee -a /etc/ssh/login.group.allowed sudo echo "administrator" | sudo tee -a /etc/ssh/login.group.allowed
sudo echo "$NetBios"'\'"$myhost""sudoers" | sudo tee -a /etc/ssh/login.group.allowed sudo echo "$NetBios"'\'"$myhost""sudoers" | sudo tee -a /etc/ssh/login.group.allowed
sudo echo "$NetBios"'\'"domain^admins" | sudo tee -a /etc/ssh/login.group.allowed sudo echo "$NetBios"'\'"domain^admins" | sudo tee -a /etc/ssh/login.group.allowed
sudo echo "Cheking if there is any previous configuration"
if [ -f /etc/sudoers.d/sudoers] if [ -f /etc/sudoers.d/sudoers]
then then
echo "Sudoersfile seems already to be modified.. skipping...." echo "Sudoersfile seems already to be modified.. skipping...."