|Main Archive Page > Month Archives > clamav-users archives|
On Fri, 14 Aug 2009 07:12:00 +0530
"Strykar" <email@example.com> wrote:
> mkdir("/mnt/memory/clamav-df42daba837ac4765e37ff3406ef2682", 0700) = -1
> EACCES (Permission denied)
this is definitely a permission related issue. Please try adding -o uid=xxx,gid=yyy (where xxx and yyy are the uid and gid numbers of 'clamav' respectively) to your mount command or to /etc/fstab and let us know if this fixes the problem.
Another solution would be creating a new directory /mnt/memory/clamav with proper permissions and then pointing clamav to this directory instead of /mnt/memory.
> Are the "Bad file descriptors" due to file-system errors or bad RAM?
The strace snippet was too short to say what's the reason for them but for sure it's not a buggy RAM :-)
> Is mkdir failing because of permissions a bug?
Yes, it is
> As the TEMPDIR (/mnt/memory/)
> is owned by clamav:clamav and the same error occurs even with the dir
> chmod'ed to 666.
Usually the proper way to specify the owner and group of the root of the fs is to use the gid=xxx and uid=yyy options.
> I've also been asking the HAVP developers too
> (http://havp.hege.li/forum/viewtopic.php?f=3&t=472&start=0) who think this
> is a TEMPDIR space issue as I cannot replicate it when using TEMPDIR on an
> HDD like /tmp/ or /var/tmp/
It's definitely not a space issue (empty dirs don't take too much really ;-)), however you should make the ram tempdir big enough to have clamav properly handle large archives or multiple files by concurrent threads, etc. but that's a different story.
HTH, -- oo ..... Tomasz Kojm <firstname.lastname@example.org> (\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg \..........._ 0DCA5A08407D5288279DB43454822DC8985A444B //\ /\ Fri Aug 14 09:35:58 CEST 2009 _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml