Problem solved. clamd uses a tmpfile() call, which uses /tmp as default temporary dir. Within jail environment, I don't know why, this directory is not usable by world.
Changed permissions, it works. Tonino At 13.19 05/05/2007, you wrote: >I've a strage problem running qmail/simscan/clamd in a FreeBSD jail. >Out of the jail, apparently the same exact enviroment and programs, >it works without problems. > >The chain is: qmail-smtpd -> simscan -> clamdscan > >Error I have is: > /var/qmail/simscantmp/1178362998.602919.17244/Prova.zip: Unable to >create temporary file ERROR > >I've got his error only for compressed archives. For everything else >it works nicely. > >simscan and clamd run as the same clamav user (user clamav has qmail group). > >Funny thing is this file does exist both in simscan temporary >directory and in clamd temporary directory. > >-rw------- 1 clamav wheel 101079 May 5 13:03 >/var/tmp/clamav-8379602cf3694bed/Prova.zip8HDqWF >-rw-r--r-- 1 clamav qmail 101079 May 5 13:03 >/var/qmail/simscantmp/1178362998.602919.17244/Prova.zip > >Thanks for any help. > >Tonino > >_______________________________________________ >Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net >http://lurker.clamav.net/list/clamav-users.html _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html
