mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Create ADconnection.sh
This commit is contained in:
parent
e7ae7ed5e7
commit
96e68fa000
@ -129,6 +129,7 @@ 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
|
||||||
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
|
||||||
sudo echo "$NetBios"'\'"domain^admins" | sudo tee -a /etc/ssh/login.group.allowed
|
sudo echo "$NetBios"'\'"domain^admins" | sudo tee -a /etc/ssh/login.group.allowed
|
||||||
|
sudo echo "Cheking if there is any previous configuration"
|
||||||
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...."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user