From bd6d571427c5ebaa4a2cb369f311e6eb19af8169 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Tue, 13 Dec 2016 09:11:27 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index afa0a8a..acf2b8e 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -50,12 +50,10 @@ fi echo "Please enter user to add (user without @server.server)" read UseR sudo echo "Configuratig files" -echo 'sudo su +exec sudo -u root /bin/sh - < tmp.sh -xterm -e "sudo sh tmp.sh" +eof sudo systemctl enable sssd sudo systemctl start sssd sudo rm tmp.sh