You are not logged in.

#1 2014-05-04 04:30:03

Prototype
Member
Registered: 2011-05-30
Posts: 28

freshclam unable to make temp dir

I'm unable to use freshclam

# freshclam
ERROR: Can't create temporary directory /var/lib/clamav/clamav-b77592d09b783b4ab2a03485685defb0.tmp
Hint: The database directory must be writable for UID 64 or GID 64

I've done

chmod /var/lib/clamav 64:64 && chmod 755 /var/lib/clamav

I've also deleted and recreated the dir and ran

freshclam -v 

With the same error, I've even removed clamav


Any idea on how to fix this?

Thanks

Offline

#2 2014-05-04 08:05:30

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: freshclam unable to make temp dir

shouldn't you be running freshclam as root?

Offline

#3 2014-05-04 09:18:44

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: freshclam unable to make temp dir

chmod /var/lib/clamav 64:64

this didn't spit out an error?

Offline

#4 2014-05-18 20:23:30

Prototype
Member
Registered: 2011-05-30
Posts: 28

Re: freshclam unable to make temp dir

hilmtye wrote:

this didn't spit out an error?

My bad I meant chown 64:64

The wiki says that should fix the permission issue but I'm still being plagued by it

EDIT:
ondoho I guess you were right I did

#freshclam --user=root

And it worked, but I've never had to do this before in the past, and the clamav user owns the dir so....

Last edited by Prototype (2014-05-18 21:04:34)

Offline

#5 2014-05-18 21:19:22

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: freshclam unable to make temp dir

so is this solved now?

Offline

#6 2014-05-20 02:10:58

Prototype
Member
Registered: 2011-05-30
Posts: 28

Re: freshclam unable to make temp dir

No, shouldn't I be able to run freshclam as clamav? Clamav owns the folder so why can't it write to it? In the past I didn't have to change user to root, and in the wiki it doesn't say to change the user to root in the config file.

Offline

#7 2014-05-20 03:19:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,196

Re: freshclam unable to make temp dir

As a sanity check, please post the output of :
whoami
groups
and
ls -ld /var/lib/clamav


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2014-05-29 04:57:24

Prototype
Member
Registered: 2011-05-30
Posts: 28

Re: freshclam unable to make temp dir

# whoami
root
# groups
root bin daemon sys adm disk wheel log
# ls -ld /var/lib/clamav/
drwxr-xr-x 2 clamav clamav 4096 May 28 14:42 /var/lib/clamav/

Offline

#9 2017-10-10 13:04:44

KICT
Member
Registered: 2017-10-10
Posts: 1

Re: freshclam unable to make temp dir

Hi,

Look like this question is still unanswered.

I believe that it is related to SELinux. Check your logs.

Thanks.

Offline

#10 2017-10-10 13:10:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,403
Website

Re: freshclam unable to make temp dir

Thank you for trying to help, but please do not necrobump. It is unlikely that this user is still having the same problem three and a half years later.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB