mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
67e2bd933c
commit
bd6d571427
@ -50,12 +50,10 @@ fi
|
|||||||
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"
|
||||||
echo 'sudo su
|
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
|
||||||
sed -i -e 's/use_fully_qualified_names = True/use_fully_qualified_names = False/g' /etc/sssd/sssd.conf
|
sed -i -e 's/use_fully_qualified_names = True/use_fully_qualified_names = False/g' /etc/sssd/sssd.conf
|
||||||
exit
|
eof
|
||||||
exit' > tmp.sh
|
|
||||||
xterm -e "sudo sh tmp.sh"
|
|
||||||
sudo systemctl enable sssd
|
sudo systemctl enable sssd
|
||||||
sudo systemctl start sssd
|
sudo systemctl start sssd
|
||||||
sudo rm tmp.sh
|
sudo rm tmp.sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user