From 4d17e51c07f890d40711e1520799df3c6a75adc2 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Tue, 27 Mar 2018 08:30:28 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index 4db6cdf..957a891 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -129,7 +129,13 @@ sudo sh -c "echo 'greeter-show-manual-login=true' | sudo tee -a /usr/share/light sudo sh -c "echo 'allow-guest=false' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf" fi else -echo "no 50-ubuntu.conf " +if [ -f /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf ] +then +sudo sh -c "echo 'greeter-show-manual-login=true' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf" +sudo sh -c "echo 'allow-guest=false' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf" +else +echo "" +fi fi clear sed -i -e 's/fallback_homedir = \/home\/%u@%d/#fallback_homedir = \/home\/%u@%d/g' /etc/sssd/sssd.conf