mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
6e61f7acaf
commit
cde9d51460
@ -47,6 +47,7 @@ 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
|
||||||
|
clear
|
||||||
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"
|
||||||
@ -74,7 +75,6 @@ sudo cat /etc/sudoers | grep $myhost
|
|||||||
sudo cat /etc/sudoers | grep $Group
|
sudo cat /etc/sudoers | grep $Group
|
||||||
echo "in SSH allow file..."
|
echo "in SSH allow file..."
|
||||||
sudo cat /etc/ssh/login.group.allowed | grep $myhost
|
sudo cat /etc/ssh/login.group.allowed | grep $myhost
|
||||||
sudo cat /etc/ssh/login.group.allowed | grep $Group
|
|
||||||
echo " if this is wrong DO NOT REBOOT and contact sysadmin"
|
echo " if this is wrong DO NOT REBOOT and contact sysadmin"
|
||||||
exec sudo -u root /bin/sh - <<eof
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user