LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ClamAV wont update (https://www.linuxquestions.org/questions/linux-software-2/clamav-wont-update-207040/)

m3kgt 07-19-2004 01:56 PM

ClamAV wont update
 
I am running RedHat 3.0 ES.
I installed ClamAV 0.70 a while back and set it up to stay updated with a cronjob. I have been noticing a lot of viruses getting past it though, so I decided to log into the mail server and manually update ClamAV. I seem to be unable to complete an update though.

Its obviously a permissions error, but I am not sure what I need to change the permissions on.

When I run

# freshclam

I get this...

ClamAV update process started at Mon Jul 19 15:05:32 2004
Reading CVD header (main.cvd): OK
ERROR: Can't open new file ./clamav-1b10c6c91250ec38 to write
open: Permission denied
ERROR: Can't download main.cvd from 69.93.108.98


And when I check the freshclam.log file, I see this...

ClamAV update process started at Mon Jul 19 15:05:32 2004
ERROR: Can't open new file ./clamav-1b10c6c91250ec38 to write
ERROR: Can't download main.cvd from 69.93.108.98


so its telling me that its permissions arent correct and it cant create this file, but where do I need to set the permissions? For what folder? What file? What should they be set to? I have double check the home directory of the ClamAV user, I changed the permissions for the ClamAV log folder, but nothing seems to work.

I am guessing my virus pattern is outdated... so any help is appreciated! If you have any questions that you need answered in order for you to help me better, let me know.

Thanks much!

Joe

ziggie216 07-19-2004 02:02 PM

main.cvd is locate @ /usr/local/share/clamav/ w/ chmod 644 own by clamav:clamav

btw current version of clam is 0.73 or 0.74..

m3kgt 07-19-2004 02:06 PM

I changed the permissions of that file, still doesnt work. It looks to me like its having problems creating the file "./clamav-18c627e49af5730b" which is whats holding things up. I am not sure what directory its trying to create that file in. I am thinking I need to change the permissions on the directory that its trying to create that file in.

Maybe its trying to create that file in the same directory as main.cvd? Which on my system is in /var/lib/clamav/

I am going to give that a try and report back. :) Thanks for the quick reply.

m3kgt 07-19-2004 02:15 PM

#chmod -R clamav.clamav /var/lib/clamav

That fixed the problem.

Also, thanks to the guys on irc.freenode.net channel clamav for pointing me to this website....

http://sial.org/howto/clamav/freshclam/

Very helpful. Posting it up for people in the future who search LQ for similar problems. :)


All times are GMT -5. The time now is 08:37 PM.