> > > Message: 9 > Date: Wed, 1 Apr 2009 13:59:28 -0400 > From: Dale Patterson <gcaharchiv...@gmail.com> > Subject: [Clamav-users] Problems with clamdscan : access denied > To: clamav-users@lists.clamav.net > Message-ID: > <7b74cff50904011059p24be33d4mcfb6779a30151...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > I have searched through the archives and can't find a solution to my > problem. > > I have a fresh install of Ubuntu 8.10 and installed clamav through its > Synaptic Package Manager. It installed version 0.94.2. > > When I invoke clamdscan [filename or folder] I get > dpatt...@quarantine:~$ clamdscan po.conf > /home/dpatters/po.conf: Access denied. ERROR > > This happens on all directories except /tmp. My directories are world > readable and executable, as are the files. The clamd user is clamav. > There > is no AppArmor running (I did a ps and a ps | grep apparmor with > variations > and found nothing.) > > Also, another piece of software I have installed needs to use clamdscan > does not make use of the pipe ( clamdscan - < file name -- this does > work.) > > I've also set clamav to listen to tcpsocket 3310 and then telneted there to > execute commands. I get the same access denied response. I tried this > because the piece of software I have needs to communicate with clamav by > that port. > > In short none of the excellent clues and hints I've found in the mailing > list archives and on the net in general have solved this problem for me. > > Any ideas? > > Thanks so much. > -- > Dale Patterson > > > ------------------------------ > > Message: 10 > Date: Wed, 1 Apr 2009 19:03:41 +0100 > From: Rob MacGregor <rob.macgre...@gmail.com> > Subject: Re: [Clamav-users] Problems with clamdscan : access denied > To: ClamAV users ML <clamav-users@lists.clamav.net> > Message-ID: > <43ea8d070904011103g6e571c1et8f6edc25aaacf...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > On Wed, Apr 1, 2009 at 18:59, Dale Patterson <gcaharchiv...@gmail.com> > wrote: > <---SNIP---> > > When I invoke clamdscan [filename or folder] I get > > dpatt...@quarantine:~$ clamdscan po.conf > > /home/dpatters/po.conf: Access denied. ERROR > > > > This happens on all directories except /tmp. ?My directories are world > > readable and executable, as are the files. ?The clamd user is clamav. > > So, the user clamav almost certainly doesn't have access to the file. > Have you considered using clamscan (as a user with access to the > file) instead? > > -- > Please keep list traffic on the list. > > Rob MacGregor > Whoever fights monsters should see to it that in the process he > doesn't become a monster. Friedrich Nietzsche >
Have discovered the answer. And feel a little sheepish. It turns out that even though apparmor did not show up in a ps command, apparently clamav can still make calls to its config file? In any case I got the following information for the creators of the piece of software that uses clamav. The said since I had Ubuntu try the following commands. sudo /etc/init.d/apparmor stop sudo udpate-rc.d -f apparmor remove sudo /etc/init.d/clamav-daemon restart And now clamdscan works like a charm and I am up and running. Thanks everyone. -- Dale Patterson _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml