On Tue, 2 Dec 2003 02:09:50 +0800 "Sandy T. Santos" <[EMAIL PROTECTED]> wrote:
> hi,
>
> i've successfully compiled clamav-0.65 on my mandrake 8.2 but
> everytime i start clamd i get this error.
>
> LibClamAV Error: cli_cvdload(): Can't create temporary
> directory /root/tmp/45293e6f36fa5577
> ERROR: Unable to create temporary directory.
>
> here's my clamav.conf
> User amavis
> AllowSupplementaryGroups
> PidFile /var/amavis/clamd.pid
> LocalSocket /var/amavis/clamd
>
> however when i comment the User directive in clamav.conf, clamd starts
> successfully. but i don't want it to run as root.
This is a known problem with Mandrake and will be fixed in the next
version. Here's a temporary solution from Martin Sitar:
"The problem is that on Mandrake are default tmp directories at home
dirs
of users not in /tmp. Clamd is started with root privileges and then is
running under clamav user, but keeps old roots TMPDIR setting so clam
can`t create
temporary directory /root/tmp/0c4be0b15cf73f95.
Problem is between lines 283-293 in file cvd.c where is variable TMPDIR
checked
...
I solved this problem under Mandrake by exporting TMPDIR="/tmp" in
/etc/init.d/clamd, but I think it should be fixed better way".
Best regards,
Tomasz Kojm
--
oo ..... [EMAIL PROTECTED] www.ClamAV.net
(\/)\......... http://www.clamav.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Mon Dec 1 15:12:34 CET 2003
pgp00000.pgp
Description: PGP signature
