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
f99e850b1a
commit
88326efbb7
@ -128,7 +128,7 @@ sudo sh -c "echo 'allow-guest=false' | sudo tee -a /usr/share/lightdm/lightdm.co
|
|||||||
sudo echo "Cheking if there is any previous configuration"
|
sudo echo "Cheking if there is any previous configuration"
|
||||||
if [ -f /etc/ssh/login.group.allowed ]
|
if [ -f /etc/ssh/login.group.allowed ]
|
||||||
then
|
then
|
||||||
echo "Files seems already to be modified.. skipping...."
|
echo "Files seems already to be modified, skipping..."
|
||||||
else
|
else
|
||||||
sudo touch /etc/ssh/login.group.allowed
|
sudo touch /etc/ssh/login.group.allowed
|
||||||
sudo echo "administrator" | sudo tee -a /etc/ssh/login.group.allowed
|
sudo echo "administrator" | sudo tee -a /etc/ssh/login.group.allowed
|
||||||
@ -137,7 +137,7 @@ sudo echo "$NetBios"'\'"domain^admins" | sudo tee -a /etc/ssh/login.group.allowe
|
|||||||
fi
|
fi
|
||||||
if [ -f /etc/sudoers.d/sudoers ]
|
if [ -f /etc/sudoers.d/sudoers ]
|
||||||
then
|
then
|
||||||
echo "Sudoersfile seems already to be modified.. skipping...."
|
echo "Sudoersfile seems already to be modified, skipping..."
|
||||||
else
|
else
|
||||||
sudo echo "administrator ALL=(ALL:ALL) ALL" | sudo tee -a /etc/sudoers.d/sudoers
|
sudo echo "administrator ALL=(ALL:ALL) ALL" | sudo tee -a /etc/sudoers.d/sudoers
|
||||||
sudo echo "%$myhost""sudoers ALL=(ALL:ALL) ALL" | sudo tee -a /etc/sudoers.d/sudoers
|
sudo echo "%$myhost""sudoers ALL=(ALL:ALL) ALL" | sudo tee -a /etc/sudoers.d/sudoers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user