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