> I haven't seen a stale .dbLock file, but both freshclam and clamd 0.90 have been dying with "Can't lock database > directory" every time a new version of signatures comes out. This is on a RedHat Advanced Server 4 system. I have > pasted portions of the logs below. Freshclam runs as a cron job under root. Freshclam.conf sets "DatabaseOwner clamav", > and clamd.conf set "User clamav".
BTW, here are the permissions on the database directory and files: $ ls -lad /usr/local/share/clamav drwxrwxr-x 3 clamav clamav 4096 Feb 22 12:22 /usr/local/share/clamav $ ls -la /usr/local/share/clamav total 8048 drwxrwxr-x 3 clamav clamav 4096 Feb 22 12:22 . drwxr-xr-x 5 root root 4096 Feb 21 14:36 .. drwxr-xr-x 2 clamav clamav 4096 Feb 22 11:22 daily.inc -rw-rw-r-- 1 clamav clamav 8189490 Feb 21 14:36 main.cvd -rw------- 1 clamav clamav 260 Feb 22 12:22 mirrors.dat $ ls -la /usr/local/share/clamav/daily.inc total 1780 drwxr-xr-x 2 clamav clamav 4096 Feb 22 11:22 . drwxrwxr-x 3 clamav clamav 4096 Feb 22 12:22 .. -rw-r--r-- 1 clamav clamav 17992 Feb 21 14:37 COPYING -rw-r--r-- 1 clamav clamav 19 Feb 21 14:37 daily.cfg -rw-r--r-- 1 clamav clamav 23073 Feb 22 04:22 daily.db -rw-r--r-- 1 clamav clamav 2109 Feb 21 18:22 daily.fp -rw-r--r-- 1 clamav clamav 10097 Feb 22 11:22 daily.hdb -rw-r--r-- 1 clamav clamav 410 Feb 22 11:22 daily.info -rw-r--r-- 1 clamav clamav 191419 Feb 22 06:22 daily.mdb -rw-r--r-- 1 clamav clamav 1478099 Feb 22 11:22 daily.ndb -rw-r--r-- 1 clamav clamav 1694 Feb 21 18:22 daily.pdb -rw-r--r-- 1 clamav clamav 205 Feb 21 14:37 daily.wdb -rw-r--r-- 1 clamav clamav 1848 Feb 21 14:37 daily.zmd $ egrep clamav /etc/passwd clamav:x:502:502:Clam Antivirus:/home/clamav:/bin/false $ egrep clamav /etc/group clamav:x:502:bwolf - Brian _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html