Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-01-31 10:57:04 +01:00 committed by GitHub
parent 891983bc6f
commit 84e41f482b

View File

@ -75,10 +75,10 @@ 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
sudo echo "#######################"
sudo echo "Configuratig files" sudo echo "Configuratig files"
sudo systemctl enable sssd sudo systemctl enable sssd
sudo systemctl start sssd sudo systemctl start sssd
sudo rm tmp.sh
echo "session required pam_mkhomedir.so skel=/etc/skel/ umask=0022" >> /etc/pam.d/common-session echo "session required pam_mkhomedir.so skel=/etc/skel/ umask=0022" >> /etc/pam.d/common-session
echo "auth required pam_listfile.so onerr=fail item=group sense=allow file=/etc/ssh/login.group.allowed" >> /etc/pam.d/common-auth echo "auth required pam_listfile.so onerr=fail item=group sense=allow file=/etc/ssh/login.group.allowed" >> /etc/pam.d/common-auth
sudo sh -c "echo 'greeter-show-manual-login=true' >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf" sudo sh -c "echo 'greeter-show-manual-login=true' >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf"