LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-19-2004, 02:56 PM   #1
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Rep: Reputation: 15
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
 
Old 07-19-2004, 03:02 PM   #2
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
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..
 
Old 07-19-2004, 03:06 PM   #3
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 07-19-2004, 03:15 PM   #4
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
#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.
 
  


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
yum update wont work Andreal Linux - Newbie 4 11-06-2005 03:47 AM
wont boot after update suse enigmatech Linux - Newbie 6 08-11-2005 02:45 AM
Update than wont work Eugney Linux - Software 1 07-07-2005 08:06 AM
cannot update clamAV izquierdista Linux - Security 3 06-10-2005 09:34 AM
Yast wont update, install, etc. Soabirw Linux - Software 1 05-20-2005 04:37 PM


All times are GMT -5. The time now is 12:26 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration