LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Support with clamAV (https://www.linuxquestions.org/questions/linux-newbie-8/support-with-clamav-305160/)

amer_58 03-23-2005 01:49 PM

Support with clamAV
 
I have followed all the instruction except the etc/freshclam.conf and etc/clamd.conf I think I have missed it up, this is what I done:

I would really appreciate all kind of support here:

Code:


Step 1:

./configure --prefix=/home/gary/clamav --disable-clamav
make
make install

Step 2:

groupadd clamav
useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav

Step 3:

./configure --sysconfdir=/et
make
make install

Step 4:

./configure --enable-milter

Step 5:

with this command $ clamd I get:
ERROR: Please edit the example config file /etc/clamd.conf

Step 6:

clamscan -r -l scan.txt

Known viruses: 30736
Scanned directories: 54
Scanned files: 734
Infected files: 5
Data scanned: 19.73 MB
I/O buffer size: 131072 bytes
Time: 20.694 sec (0 m 20 s)

Step 7:
touch /var/log/clam-update.log
chmod 600 /var/log/clam-update.log
chown clamav /var/log/clam-update.log

Step 8:
freshclam -d And I get this:

ERROR: Please edit the example config file /etc/freshclam.conf.
ERROR: Please edit the example config file /etc/clamd.conf.
ERROR: Can't parse the config file /etc/clamd.co

Now I have loaded my  vi /etc/freshclam.conf  and I have removed the # almost from all lines.... is that right :confused: 

For example this is a few lines from the file


# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
# Default: There is no default, which results in an error when running freshclam
DatabaseMirror db.XY.clamav.net

# database.clamav.net is a round-robin record which points to our most
# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is
# not working. DO NOT TOUCH the following line unless you know what you
# are doing.
DatabaseMirror database.clamav.net

# How many attempts to make before giving up.
# Default: 3 (per mirror)
MaxAttempts 5

# Number of database checks per day.
# Default: 12 (every two hours)
Checks 24

# Proxy settings
Default: Enabled
127.1.1.1
8080


dsegel 03-24-2005 03:35 PM

Did you comment out or delete the 'Example' line in the two config files? That's what it really wants you to do when it says "Please edit the example config file ...".

Also, your "DatabaseMirror" line posted above needs to have XY replaced with your country code, like it says....


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