Re: freshclam & clamav questions
- From: goarilla <"kevin DOT paulus AT skynet DOT be">
- Date: Thu, 25 Oct 2007 13:39:13 +0200
oOg wrote:
Hi, I have had various errors with these processes. Running Feisty 7.04.
Googled for answers and was pointed to
$ ls -l /usr/local/share/clamav ls: /usr/local/share/clamav: No such file or directory
Can't lock database directory: /var/lib/clamav
is the message I get
~$ ls -l /var/lib/clamav/
total 10061
-rw-r--r-- 1 clamav clamav 903927 2007-10-25 02:05 daily.cvd
-rw-r--r-- 1 root root 9351789 2007-10-25 02:02 main.cvd
drwxr-xr-x 2 clamav clamav 1024 2007-10-01 00:48 main.inc
-rw------- 1 clamav clamav 1352 2007-10-25 03:06 mirrors.dat
total 10061
-rw-r--r-- 1 clamav clamav 903927 2007-10-25 02:05 daily.cvd
-rw-r--r-- 1 root root 9351789 2007-10-25 02:02 main.cvd
drwxr-xr-x 2 clamav clamav 1024 2007-10-01 00:48 main.inc
-rw------- 1 clamav clamav 1352 2007-10-25 03:06 mirrors.dat
I have no clue. Please someone kindly tip me off. I don't want no
viruses or identity theft, etc, and think this must work. Please and
thank you, if you will be so kind to help.
It was all automagically installed with synaptic.
first of all unless your system is also a mail server
or something else that provides file sharing services to other clients (win)
running clamav is pretty worthless.
try this one: ls -ld /var/lib/clamav
that command gives you the actual permissions of that dir, ls -l dir/ just gives permissions of the
contents of the dir.
you're right to look for the perms tho since
Can't lock database directory: /var/lib/clamav
does seem like a permission error.
how do you start clamav btw ?
and under which user account.
you can find commands with which and whereis
lastly read the documentation, heck even try to find a ubuntu specific howto for all i care
and you can always strace the command and grep it for open and exec system calls
example:
strace clamav &> strace.dump
egrep '^open|exec' strace.dump
suid/seuid syscalls can also be valuable in this case, since well
no point in changing perms of a lot of files and thus opening up your system
if it's just running under the wrong (eg underpriveledged) account
PS: please don't post the same ls output twice
.
- Follow-Ups:
- Re: freshclam & clamav questions
- From: oOg
- Re: freshclam & clamav questions
- References:
- freshclam & clamav questions
- From: oOg
- freshclam & clamav questions
- Prev by Date: freshclam & clamav questions
- Next by Date: Re: freshclam & clamav questions
- Previous by thread: freshclam & clamav questions
- Next by thread: Re: freshclam & clamav questions
- Index(es):
Relevant Pages
|
|