592,7 → 592,12 |
$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php |
chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php |
chown -R apache:apache $DIR_WEB/* |
for i in system_backup base logs/firewall logs/httpd logs/security; |
# create the backup structure : |
# - base = users database |
# - system_backup = alcasar conf file + users database |
# - archive = tarball of "base + http firewall + netflow" |
# - security = watchdog disconnection) |
for i in system_backup base archive security; |
do |
[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i |
done |
1652,9 → 1657,9 |
$DIR_CONF/fail2ban.sh |
# Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp |
[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log |
[ -e /var/Save/logs/security/watchdog.log ] || touch /var/Save/logs/security/watchdog.log |
[ -e /var/Save/security/watchdog.log ] || touch /var/Save/security/watchdog.log |
chmod 644 /var/log/fail2ban.log |
chmod 644 /var/Save/logs/security/watchdog.log |
chmod 644 /var/Save/security/watchdog.log |
/usr/bin/touch /var/log/auth.log |
|
|