Re: freshclam & clamav questions



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
.



Relevant Pages

  • Re: ubuntu-users Digest, Vol 47, Issue 208
    ... Superuser confusion or maybe critically confused ... "Permissions" appears nowhere in Nautilus, so far as I can tell. ... I am attempting to learn to use command line. ...
    (Ubuntu)
  • Re: 2 pc network - cant see host files from pc 2 on pc 1
    ... > Enable it on both computers and use the command ipconfig /all to make sure ... > permissions. ... > user account and/or change the password for a user account. ... It continuously states the windows ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Setting permissions
    ... Permissions or folder Permission, etc? ... the CACLS command for you: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Granting permissions in ADAM
    ... To add Authenticated Users to the Readers role you can use ADSIEdit, ... Was able to excute the command: ... Permissions inherited to subobjects are: ... only an ADAM user could update their own object. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... The -ga command isn't a part of that beta version. ... permissions to the global assembly cache. ... Please review the steps in it, for creating a service account for an ASP.NET 2.0 application, ... I've also tried the aspnet_regiis thing as well as setting permissions on folders as described ...
    (microsoft.public.dotnet.framework.aspnet)