Thursday 3 April 2014

ERROR: While updating clamAV

I was trying to update clamav in my server using freshclam. I encountered the following error:
root@ manoj[/home/manoj]# freshclam
ERROR: Can't create temporary directory /usr/local/cpanel/3rdparty/share/clamav/clamav-492827ecdc9e2d3785061707648ca1a5.tmp
Hint: The database directory must be writable for UID 32008 or GID 32010

I was able to solve the error by changing the ownership of file " /usr/local/cpanel/3rdparty/share/clamav" to clamav.

The command used was as follows:
 root@manoj [/home/manoj]# chown clamav:clamav /usr/local/cpanel/3rdparty/share/clamav

Then I used freshclam and it was successful:
root@manoj [/home/manoj]# freshclam

No comments:

Post a Comment

Note: only a member of this blog may post a comment.