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!
mkdir /usr/local/lynis
cd /usr/local/lynis
wget https://downloads.cisofy.com/lynis/lynis-2.7.5.tar.gz
tar -xvf lynis-2.7.5.tar.gz
cd /usr/local/lynis/lynis
./lynis
./lynis --check-all
yum install epel-release
yum update
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
cp /etc/freshclam.conf /etc/freshclam.conf.bak
sed -i '/Example/d' /etc/freshclam.conf
nano /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.service
systemctl start clam-freshclam.service
freshclam
cp /usr/share/clamav/template/clamd.conf /etc/clamd.d/clamd.conf
sed -i '/Example/d' /etc/clamd.d/clamd.conf
mv /usr/lib/systemd/system/[email protected] /usr/lib/systemd/system/clamd.service
nano /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/system
systemctl enable clamd.service
systemctl start clamd.service
clamscan -r /
clamscan -r -i /
clamscan -r -i / &
clamscan -r /home
clamscan -r --move=/home/USER/Quarantine /home/USER
clamscan -r --remove /home/USER
Comments