clamav 설치
프리이미지
본문
dpkg --configure -a
apt-get remove -y --purge clamav clamav-freshclam
apt-get autoremove -y
rm -rf /var/log/clamav /etc/clamav
apt-get clean
apt-get update
userdel clamav
groupdel clamav
apt-get install -y clamav
clamav-freshclam
touch /nfs/scan/freshclam.log
chmod 600 /nfs/scan/freshclam.log
chown clamav /nfs/scan/freshclam.log
chown clamav /nfs/scan
groupadd clamav;
useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav;
passwd -l clamav
ps ax | grep fre
freshclamv
nohup clamscan / -r --quiet --infected -l /nfs/scan/clamscan.log --move=감염파일저장경로 --exclude-dir=/nfs/scan
vi /nfs/scan/clamscan.sh
#!/bin/sh
freshclam
clamscan -r 검색할경로 --infected -l /nfs/scan/clamscan.log --move=감염파일저장경로 --exclude-dir=/nfs/scan
vi /etc/crontab
# 백신
10 3,15 * * * root /nfs/scan/clamscan.sh
댓글목록
등록된 댓글이 없습니다.