LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Clamav installation problem (https://www.linuxquestions.org/questions/linux-newbie-8/clamav-installation-problem-444888/)

shipon_97 05-15-2006 01:16 AM

Clamav installation problem
 
Dear ,
I am littlebit new using Clamav . I have configure clamav-0.88.2 into my Redhat Linux 4 machine . Now i have some question about clamav , plz provide some help :

1) what is the difference between clamd, clamscan and clamdscan . What is their activities ?

2)when i run clamdscan then it shows the following Error :
connect(): Connection refused
ERROR: Can't connect to clamd.
I don't undestand what is the problem ?

3) In "clamd.conf" and "freshclam.conf" i use the following database Directory :

"DatabaseDirectory /var/lib/clamav"
and also run :
"chmod 755 DatabaseDirectory /var/lib/clamav"

And then when i run "clamd" then shows :
"ERROR: Database initialization error." what is the problem ?

Which information this database holds ?

4 ) when i run "tail -f /var/log/clamav/clamd.log"
then it shows :

"WARNING: Socket file /usr/share/clamav/socket exists. Unclean shutdown? Removing...
ERROR: Socket file /usr/share/clamav/socket could not be removed: Permission denied "

i don't understand the problem ? Plz plz give me some solution .......

Berhanie 05-16-2006 11:21 AM

(1) clamd/clamdscan are the server/client pair. clamd is the virus-scanning daemon, and clamdscan is the client by which one contacts the daemon to scan files (e.g. "clamdscan filename"). clamscan is the command-line version, so you would use either the pair clamd/clamdscan or clamscan.

(2)-(4) Some suggestions:
- Make sure /var/lib/clamav is owned by the user specified by the "DatabaseOwner" variable in freshclam.conf.
- Make sure that the user specified by the "User" variable in clamd.conf has permission to create files in the directory containing the socket specified by the "LocalSocket" variable in clamd.conf.
- run "freshclam" to update the database


All times are GMT -5. The time now is 06:27 AM.