Update ADconnection.sh

This commit is contained in:
PierreGoude 2016-12-13 10:30:13 +01:00 committed by GitHub
parent 6e61f7acaf
commit cde9d51460

View File

@ -47,6 +47,7 @@ if [ $? -ne 0 ]; then
echo "AD join failed. Please run 'journalctl -xn' to determine why." echo "AD join failed. Please run 'journalctl -xn' to determine why."
exit 1 exit 1
fi fi
clear
echo "Please enter user to add (user without @server.server)" echo "Please enter user to add (user without @server.server)"
read UseR read UseR
sudo echo "Configuratig files" sudo echo "Configuratig files"
@ -74,7 +75,6 @@ sudo cat /etc/sudoers | grep $myhost
sudo cat /etc/sudoers | grep $Group sudo cat /etc/sudoers | grep $Group
echo "in SSH allow file..." echo "in SSH allow file..."
sudo cat /etc/ssh/login.group.allowed | grep $myhost sudo cat /etc/ssh/login.group.allowed | grep $myhost
sudo cat /etc/ssh/login.group.allowed | grep $Group
echo " if this is wrong DO NOT REBOOT and contact sysadmin" echo " if this is wrong DO NOT REBOOT and contact sysadmin"
exec sudo -u root /bin/sh - <<eof exec sudo -u root /bin/sh - <<eof
sed -i -e 's/GROUPHOMES=no/GROUPHOMES=yes/g' /etc/adduser.conf sed -i -e 's/GROUPHOMES=no/GROUPHOMES=yes/g' /etc/adduser.conf