|
|
@@ -72,20 +72,26 @@ sudo realm deny --all
|
|
|
sudo realm permit -g "Domain Admins"
|
|
|
sudo realm permit -g "Access - Admin - All Servers"
|
|
|
sudo realm permit -g "Access - Admin - $HOST"
|
|
|
+sudo realm permit -g "Access - Admin - All Linux Servers"
|
|
|
|
|
|
# Set up sudoers file
|
|
|
echo "%Domain\ Admins ALL=(ALL:ALL) ALL" | sudo tee /etc/sudoers.d/LocalAdmins > /dev/null
|
|
|
echo "%Access\ -\ Admin\ -\ All\ Servers ALL=(ALL) ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
|
|
|
+echo "%Access\ -\ Admin\ -\ All\ Linux\ Servers ALL=(ALL) ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
|
|
|
echo "%Access\ -\ Admin\ -\ $HOST ALL=(ALL) ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
|
|
|
+echo "Ansible ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
|
|
|
+
|
|
|
+# Set Timezone to Eastern
|
|
|
+sudo timedatectl set-timezone America/New_York
|
|
|
|
|
|
# copy file from SCP server to local system
|
|
|
-sudo scp -r anonymous@ptiwa001:ninja-agent.deb ~/
|
|
|
+sudo scp -r anonymous@ptiwa001:ninja-agent.deb /home/coadmin/
|
|
|
|
|
|
# install package using dpkg
|
|
|
sudo dpkg -i ninja-agent.deb
|
|
|
|
|
|
# copy file from SCP server to local system
|
|
|
-sudo scp -r anonymous@ptiwa001:falcon-sensor_6.46.0-14306.deb ~/
|
|
|
+sudo scp -r anonymous@ptiwa001:falcon-sensor_6.46.0-14306.deb /home/coadmin/
|
|
|
|
|
|
# install package using dpkg
|
|
|
sudo dpkg -i falcon-sensor_6.46.0-14306.deb
|
|
|
@@ -96,10 +102,15 @@ sudo /opt/CrowdStrike/falconctl -s --cid=D0511099B3FF494D8B87F48C4AB90201-56
|
|
|
# Remove packages that are not required
|
|
|
sudo apt autoremove -y
|
|
|
|
|
|
-# Start Services
|
|
|
+# Configure syslog server
|
|
|
+echo 'remote host is: dcpi-siem 10.200.24.51:514' | sudo tee -a /etc/rsyslog.conf
|
|
|
+echo '*.* @@10.200.24.51:514' | sudo tee -a /etc/rsyslog.conf
|
|
|
+
|
|
|
+# Start/Restart Services
|
|
|
sudo systemctl restart sssd
|
|
|
sudo systemctl start ninjarmm-agent.service
|
|
|
sudo systemctl start falcon-sensor
|
|
|
+sudo systemctl restart rsyslog
|
|
|
|
|
|
# check the status of the services
|
|
|
sudo systemctl | grep -E 'falcon-sensor|ninjarmm-agent|sssd.service'
|