mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Create ADconnection.sh
This commit is contained in:
parent
df476e058a
commit
e8dd64ecad
@ -138,7 +138,7 @@ read -p "Is your current administrator = "$admins" ? (y/n)?" yn
|
|||||||
[Yy]* ) sudo echo "$admins" | sudo tee -a /etc/ssh/login.group.allowed;;
|
[Yy]* ) sudo echo "$admins" | sudo tee -a /etc/ssh/login.group.allowed;;
|
||||||
[Nn]* ) echo "please type name of current administrator"
|
[Nn]* ) echo "please type name of current administrator"
|
||||||
read -p MYADMIN
|
read -p MYADMIN
|
||||||
sudo echo "$MYADMIN" | sudo tee -a /etc/ssh/login.group.allowed;;
|
sudo echo $MYADMIN | sudo tee -a /etc/ssh/login.group.allowed;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
sudo echo "$NetBios"'\'"$myhost""sudoers" | sudo tee -a /etc/ssh/login.group.allowed
|
sudo echo "$NetBios"'\'"$myhost""sudoers" | sudo tee -a /etc/ssh/login.group.allowed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user