mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
add rootkit detectors
This commit is contained in:
parent
020110eefd
commit
b2d966f8e4
@ -2,7 +2,7 @@ source /etc/mailinabox.conf
|
||||
source setup/functions.sh
|
||||
|
||||
# Add additional packages
|
||||
apt_install pflogsumm
|
||||
apt_install pflogsumm rkhunter chkrootkit
|
||||
|
||||
# Cleanup old spam and trash email
|
||||
hide_output install -m 755 conf/cron/miab_clean_mail /etc/cron.weekly/
|
||||
@ -25,3 +25,28 @@ hide_output systemctl restart systemd-journald.service
|
||||
cat > /root/.forward << EOF;
|
||||
administrator@$PRIMARY_HOSTNAME
|
||||
EOF
|
||||
|
||||
# Install fake mail script
|
||||
if [ ! -f /usr/local/bin/mail ]; then
|
||||
hide_output install -m 755 tools/fake_mail /usr/local/bin
|
||||
mv -f /usr/local/bin/fake_mail /usr/local/bin/mail
|
||||
fi
|
||||
|
||||
tools/editconf.py /etc/rkhunter.conf \
|
||||
UPDATE_MIRRORS=1 \
|
||||
MIRRORS_MODE=0 \
|
||||
WEB_CMD='""' \
|
||||
MAIL-ON-WARNING=root \
|
||||
ALLOWHIDDENDIR=/etc/.java
|
||||
|
||||
tools/editconf.py /etc/default/rkhunter \
|
||||
CRON_DAILY_RUN='"true"' \
|
||||
CRON_DB_UPDATE='"true"' \
|
||||
APT_AUTOGEN='"true"'
|
||||
|
||||
tools/editconf.py /etc/chkrootkit.conf \
|
||||
RUN_DAILY='"true"'
|
||||
|
||||
# Should be last
|
||||
rkhunter --propupd
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user