This commit is contained in:
2025-04-16 16:51:08 +02:00
parent 76d0b4a98a
commit 9d27cb1b59
8 changed files with 100 additions and 2 deletions

18
12-hardening/script.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
# Pour la configuration Hardening
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NOCOLOR='\033[0m'
echo "${YELLOW} ** ${NOCOLOR} Début du script : 12-Hardening"
echo "${NOCOLOR}"
cp 12-hardening/sysctl.conf /etc/sysctl.conf >> /dev/null
sysctl -p
cp 12-hardening/limits.conf /etc/security/limits.conf >> /dev/null
echo "${YELLOW} ** ${NOCOLOR} Fin du script : 12-Hardening"
echo "${NOCOLOR}"