You are not logged in.
Pages: 1
Topic closed
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
shouldn't you be running freshclam as root?
Offline
chmod /var/lib/clamav 64:64
this didn't spit out an error?
Offline
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
so is this solved now?
Offline
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
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
# 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
Hi,
Look like this question is still unanswered.
I believe that it is related to SELinux. Check your logs.
Thanks.
Offline
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.
Offline
Pages: 1
Topic closed