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

From ArchWiki
Jump to: navigation, search
(Configuration)
(Troubleshooting)
Line 40: Line 40:
  
 
==Troubleshooting==
 
==Troubleshooting==
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 deamon (/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 deamona:
 
  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 13:38, 6 February 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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.

Instalacija

Instalirajte ClamAV sa sledećom komandom:

# pacman -S clamav

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 Template:Filename file. (you probably need to do the same to Template:Filename in the same dir too) and update the virus & malware database.

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 Template:Filename i Template:Filename and comment out the Example flag. In Template:Filename 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 Template:Filename i dodajte clamav.

Skeniranje virusa

Template:Codeline 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 Template:Codeline da uklonite zaraženu datoteku dodajte Template:Codeline opciju kao komandu.

Troubleshooting

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 deamon (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)

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

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