LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2006, 02:16 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
Question 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 .......
 
Old 05-16-2006, 12:21 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
(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

Last edited by Berhanie; 05-16-2006 at 12:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clamav problem mickeyboa Fedora 1 02-06-2006 05:13 PM
clamav installation help ic_torres Linux - Software 15 01-12-2006 06:49 AM
ClamAV installation problem - Cannot find libmilter ddaas Linux - Software 6 07-05-2005 11:55 AM
exim/clamav problem overlord73 Linux - Software 0 04-13-2005 06:42 AM
clamav, problem with make AVD_ZM Linux - Software 0 02-11-2005 01:45 PM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration