
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Valentine
Member

mkdir /usr/local/lyniscd /usr/local/lyniswget https://downloads.cisofy.com/lynis/lynis-2.7.5.tar.gz
tar -xvf lynis-2.7.5.tar.gzcd /usr/local/lynis/lynis./lynis./lynis --check-all
yum install epel-releaseyum updateyum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemdcp /etc/freshclam.conf /etc/freshclam.conf.baksed -i '/Example/d' /etc/freshclam.confnano /usr/lib/systemd/system/clam-freshclam.service# Run the freshclam as daemonEnabling freshclam to start automatically:
[Unit]
Description = freshclam scanner
After = network.target
[Service]
Type = forking
ExecStart = /usr/bin/freshclam -d -c 4
Restart = on-failure
PrivateTmp = true
[Install]
WantedBy=multi-user.target
systemctl enable clam-freshclam.servicesystemctl start clam-freshclam.servicefreshclamcp /usr/share/clamav/template/clamd.conf /etc/clamd.d/clamd.confsed -i '/Example/d' /etc/clamd.d/clamd.conf mv /usr/lib/systemd/system/[email protected] /usr/lib/systemd/system/clamd.servicenano /usr/lib/systemd/system/clamd.service
[Unit]Now move to "system" directory:
Description = clamd scanner daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/clamd.conf --nofork=yes
Restart = on-failure
PrivateTmp = true
[Install]
WantedBy=multi-user.target
cd /usr/lib/systemd/systemsystemctl enable clamd.servicesystemctl start clamd.serviceclamscan -r /clamscan -r -i /clamscan -r -i / &clamscan -r /homeclamscan -r --move=/home/USER/Quarantine /home/USERclamscan -r --remove /home/USER
Comments