Difference between revisions of "ClamAV (Српски)"

From ArchWiki
Jump to: navigation, search
(Server setup)
(rm temporary i18n template)
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category: Security (English)]]
+
[[Category: Security (Српски)]]
{{i18n|ClamAV}}
+
[[en:ClamAV]]
 
+
[[es:ClamAV]]
[http://www.clamav.net Clam AntiVirus] is an open source (GPL) anti-virus toolkit for UNIX.  It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and advanced tool for automatic database updates. Because ClamAV's main use is on file/mail servers for Windows desktops it primarily detects Windows viruses and malware.
+
[[it:ClamAV]]
 +
[[ru:ClamAV]]
 +
[http://www.clamav.net Clam AntiVirus] je open source (GPL) anti-virus alat za UNIX.  On pruža brojne alate uključujući fleksibilan i  prilagodljivi daemon, Vrši skeniranje preko komandne linije,i napredni alat za automatsko ažuriranja baze podataka. Zbog toga ClamAV's glavna upotreba je na file/mail serverima za Windows i desktop računarima na kojima  prvenstveno otkriva viruse i malware.
  
 
==Instalacija==
 
==Instalacija==
Line 8: Line 10:
 
  # pacman -S clamav
 
  # pacman -S clamav
  
==Configuration==
+
==Konfiguracija==
Whether you are going to use clamav as a daemon or use it as a simple file checker you need to comment out the line that contains the word ''Example'', usually it's found at the beginning in the {{Filename|/etc/clamav/freshclam.conf}} file. (you probably need to do the same to {{Filename|clamd.conf}} in the same dir too) and update the virus & malware database.
+
Bilo da koristitw clamav kao daemon ili da ga koristite za povremeno proveravanje datoteka potrebno je da zakomentarišete (postavite tarabu #) na reč ''Example'', koja se nalazi na početku fajla {{ic|/etc/clamav/freshclam.conf}}  
 +
Verovatno će biti potrebno da se isto uradi i kod {{ic|clamd.conf}} koji se nalazi u istom direktorijumu, zatim kada ste ovo uradili možete da ažurirate bazu podataka za viruse.
  
 
==Ažuriranje baze podataka==
 
==Ažuriranje baze podataka==
Line 22: Line 25:
  
 
==Postavke Servera==
 
==Postavke Servera==
Da biste pokrenuli kao server uredite sledeće {{Filename|/etc/clamav/clamd.conf}} i {{Filename|/etc/clamav/freshclam.conf}} and comment out the ''Example'' flag.  In {{Filename|/etc/conf.d/clamav}} promenite start opciju iz "no" u "yes".
+
Da biste pokrenuli kao server uredite sledeće {{ic|/etc/clamav/clamd.conf}} i {{ic|/etc/clamav/freshclam.conf}} and comment out the ''Example'' flag.  In {{ic|/etc/conf.d/clamav}} promenite start opciju iz "no" u "yes".
  
 
  # change these to "yes" to start
 
  # change these to "yes" to start
Line 28: Line 31:
 
  START_CLAMD="yes"
 
  START_CLAMD="yes"
  
* Da se pokrene ClamAV tokom pokretanja računara uredite {{Filename|/etc/rc.conf}} i dodajte clamav.
+
* Da se pokrene ClamAV tokom pokretanja računara uredite {{ic|/etc/rc.conf}} i dodajte clamav.
  
==Scan for Viruses==
+
==Skeniranje virusa==
{{Codeline|clamscan}} can be used to scan certain files, home directory, or an entire system:
+
{{ic|clamscan}} može da se koristi kod određenog fajla, home direktorijuma, ili celog sistema:
  
 
  $ clamscan myfile
 
  $ clamscan myfile
Line 37: Line 40:
 
  $ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /
 
  $ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /
  
If you'd like {{Codeline|clamscan}} to remove the infected file use the {{Codeline|--remove}} option in the command.
+
Ako želite {{ic|clamscan}} da uklonite zaraženu datoteku dodajte {{ic|--remove}} opciju kao komandu.
  
==Troubleshooting==
+
==Rešavanje problema==
If you get the following messages after running freshclam:
+
Ako dobijete sledeću poruku nakon pokretanja freshclam:
 
  WARNING: Clamd was NOT notified: Can't connect to clamd through  
 
  WARNING: Clamd was NOT notified: Can't connect to clamd through  
 
  /var/lib/clamav/clamd.sock connect(): No such file or directory
 
  /var/lib/clamav/clamd.sock connect(): No such file or directory
  
Add a sock file for clamav:
+
Dodajte sock datoteku za clamav:
 
  # touch /var/lib/clamav/clamd.sock
 
  # touch /var/lib/clamav/clamd.sock
 
  # chown clamav:clamav /var/lib/clamav/clamd.sock
 
  # chown clamav:clamav /var/lib/clamav/clamd.sock
Then, edit /etc/clamav/clamd.conf
+
Zatim, promenite /etc/clamav/clamd.conf
  Uncomment this line: #LocalSocket /var/lib/clamav/clamd.sock
+
  Uklonite komentar sa sledće linije: #LocalSocket /var/lib/clamav/clamd.sock
Save the file and restart the daemon (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)
+
Sačuvajte datoteku i resetujte daemon (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)
  
If you get the next error when starting the daemon:
+
Ako dobijete sledeću grešku prilikom pokretanja daemona:
 
  LibClamAV Error: cli_loaddb(): No supported database files found
 
  LibClamAV Error: cli_loaddb(): No supported database files found
 
  in /var/lib/clamav ERROR: Not supported data format
 
  in /var/lib/clamav ERROR: Not supported data format
 
   
 
   
Run freshclam as root:
+
Pokrenite freshclam kao root:
 
  # freshclam -v
 
  # freshclam -v
  
  
  
If you get a:
+
Ako se dobili:
 
  # can't create temporary directory
 
  # can't create temporary directory
 
error,
 
error,
 
along with a 'HINT' containing a UID and a GID number.
 
along with a 'HINT' containing a UID and a GID number.
  
Do the following:
+
Uradite sledeće:
 
  # chown UID:GID /var/lib/clamav & chmod 755 /var/lib/clamav  
 
  # chown UID:GID /var/lib/clamav & chmod 755 /var/lib/clamav  
  
 
  # ex: chown 64:64
 
  # ex: chown 64:64

Revision as of 09:56, 15 June 2012

Clam AntiVirus je open source (GPL) anti-virus alat za UNIX. On pruža brojne alate uključujući fleksibilan i prilagodljivi daemon, Vrši skeniranje preko komandne linije,i napredni alat za automatsko ažuriranja baze podataka. Zbog toga ClamAV's glavna upotreba je na file/mail serverima za Windows i desktop računarima na kojima prvenstveno otkriva viruse i malware.

Instalacija

Instalirajte ClamAV sa sledećom komandom:

# pacman -S clamav

Konfiguracija

Bilo da koristitw clamav kao daemon ili da ga koristite za povremeno proveravanje datoteka potrebno je da zakomentarišete (postavite tarabu #) na reč Example, koja se nalazi na početku fajla /etc/clamav/freshclam.conf Verovatno će biti potrebno da se isto uradi i kod clamd.conf koji se nalazi u istom direktorijumu, zatim kada ste ovo uradili možete da ažurirate bazu podataka za viruse.

Ažuriranje baze podataka

Potrebno je pokrenuti ClamAV daemon da bi se mogla pokrenut baza podataka za viruse:

# /etc/rc.d/clamav start

Zatim ažurirajte bazu podataka za nove viruse:

# freshclam

Baza podataka je sačuvana ovde:

/var/lib/clamav/daily.cvd
/var/lib/clamav/main.cvd

Postavke Servera

Da biste pokrenuli kao server uredite sledeće /etc/clamav/clamd.conf i /etc/clamav/freshclam.conf and comment out the Example flag. In /etc/conf.d/clamav promenite start opciju iz "no" u "yes".

# change these to "yes" to start
START_FRESHCLAM="yes"
START_CLAMD="yes"
  • Da se pokrene ClamAV tokom pokretanja računara uredite /etc/rc.conf i dodajte clamav.

Skeniranje virusa

clamscan može da se koristi kod određenog fajla, home direktorijuma, ili celog sistema:

$ clamscan myfile
$ clamscan -r -i /home
$ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /

Ako želite clamscan da uklonite zaraženu datoteku dodajte --remove opciju kao komandu.

Rešavanje problema

Ako dobijete sledeću poruku nakon pokretanja freshclam:

WARNING: Clamd was NOT notified: Can't connect to clamd through 
/var/lib/clamav/clamd.sock connect(): No such file or directory

Dodajte sock datoteku za clamav:

# touch /var/lib/clamav/clamd.sock
# chown clamav:clamav /var/lib/clamav/clamd.sock

Zatim, promenite /etc/clamav/clamd.conf

Uklonite komentar sa sledće linije: #LocalSocket /var/lib/clamav/clamd.sock

Sačuvajte datoteku i resetujte daemon (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)

Ako dobijete sledeću grešku prilikom pokretanja daemona:

LibClamAV Error: cli_loaddb(): No supported database files found
in /var/lib/clamav ERROR: Not supported data format

Pokrenite freshclam kao root:

# freshclam -v


Ako se dobili:

# can't create temporary directory

error, along with a 'HINT' containing a UID and a GID number.

Uradite sledeće:

# chown UID:GID /var/lib/clamav & chmod 755 /var/lib/clamav 
# ex: chown 64:64