Home Tag : Clam
clamscanで手動スキャンcommand
- 2007-01-24 (Wed)
- Debian
手動でスキャン
clamscan --infected --remove --recursive [file/directory/-]
オプション内容
-i, --infected
Only print infected files.
感染ファイルのみ表示
--remove
Remove infected files. Be careful.
安全に感染ファイルを削除
-r, --recursive
Scan directories recursively. All the subdirectories in the given directory will be scanned.
再帰的にディレクトリをスキャン
- Comments: 0
- TrackBack (Close): -
Debianにclamavをインストールしてウィルス予防
- 2006-12-06 (Wed)
- Debian
インスコの前にユーザーとグループを作っておくのが正解?
# groupadd clamav
# useradd -g clamav -s /bin/false -c "Clam Antivirus" clamav
作らないでインスコしたけど、なんかやってる内に出来てた。
aptitudeでのインストールなら↑きにしなくていいんじゃね?
インストール
sources.listにmain contrib non-freeだけだとウイルスDBや本体がなかなか最新にならない場合があるので気になる人はvolatileを追加する
# cd /etc/apt/sources.list.d/ 新規作成 # vi volatile.list 内容 deb http://ftp2.jp.debian.org/debian-volatile etch/volatile main contrib deb http://ftp2.jp.debian.org/debian-volatile etch/volatile-sloppy main contrib
aptitude update
aptitude install clamav clamav-daemon
Demonでインスコがいいらしい
設定
# dpkg-reconfigure clamav-freshclam
amavisd-new用の設定
/etc/clamav/clamd.conf LocalSocket /var/run/clamav/clamd.sock ctlをSockに
clamavユーザーにamavisグループを追加
# adduser clamav amavis Adding user `clamav' to group `amavis'... Done.
関連記事
参考
Clam Antivirusに関するメモ- Comments: 0
- TrackBack (Close): -
«Prev || 1 || Next»


