'Master-Installer.sh' updaten

This commit is contained in:
bprieshof
2018-09-27 09:41:58 +00:00
parent ea0a9cd9b4
commit 255e23048f

23
Master-Installer.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
###============================================================
## Ubuntu 18.04 Master Installer
###============================================================
## Zet comments hieronder:
#
#
#
##=============================================================
#install Software
apt install cockpit cockpit-packagekit -y
#Login Limiter
sed -i '/pam_sepermit.so/ i auth required pam_tally.so silent deny=4 unlock_time=90' /etc/pam.d/cockpit
sed -i '/pam_shells.so/ i account required pam_tally2.so' /etc/pam.d/cockpit
systemctl restart cockpit
ufw enable
ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 9090/tcp
ufw reload