[ZendTo] Re: unable to upload

Gavin Silver GSilver at rampuptech.com
Wed Jul 21 15:27:36 BST 2010


[root at files ~]# freshclam
ClamAV update process started at Wed Jul 21 14:21:25 2010
main.cvd is up to date (version: 52, sigs: 704727, f-level: 44, builder: sven)
Downloading daily-11403.cdiff [100%]
daily.cld updated (version: 11403, sigs: 103267, f-level: 53, builder: arnaud)
bytecode.cvd is up to date (version: 31, sigs: 7, f-level: 53, builder: nervous)
Database updated (808001 signatures) from db.local.clamav.net (IP: 194.8.197.22)
Clamd successfully notified about the update.
[root at files ~]# service clamd restart
Stopping Clam AntiVirus Daemon:                            [  OK  ]
Starting Clam AntiVirus Daemon:                            [  OK  ]
[root at files ~]# chkconfig clamd on
[root at files ~]# which clamdscan
/usr/bin/clamdscan
[root at files ~]# echo hi > /var/zendto/incoming/testscanme
[root at files ~]# chown apache.apache /var/zendto/incoming/*
[root at files ~]# clamdscan /var/zendto/incoming/*
/var/zendto/incoming/testscanme: OK

----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.000 sec (0 m 0 s)
[root at files ~]#





----------------------------------
Gavin Silver

From: zendto-bounces at zendto.com [mailto:zendto-bounces at zendto.com] On Behalf Of Jules
Sent: Tuesday, July 20, 2010 5:26 PM
To: ZendTo Users
Subject: [ZendTo] Re: unable to upload



On 20/07/2010 21:24, Gavin Silver wrote:
centos 4.5
rpm install

followed docs to download and install all the dependencies including clamav
That means it probably couldn't find clamdscan, which should be part of the ClamAV RPMs the docs told you to download. When logged in as root, what do you get from a "which clamdscan" command?

The error return code 2 implies an error occurred during virus scanning. Put some files (anything will do for a test) into /var/zendto/incoming, then "chown apache.apache /var/zendto/incoming/*" and run a command such as
    clamdscan /var/zendto/incoming/*
and see what it says.

If it says "acccess denied" lots of times then what might be wrong is that the clamav group may need adding to the apache group in /etc/group. Find the line in /etc/group starting with "apache" and add "clamav" to the end of it. Then run the command "grpconv" to build the shadow file. Then "service clamd restart" and then try clamdscan again.

If it still complains that it couldn't read files, then you either need to disable SELinux or configure it correctly so it can read the files under /var/zendto/incoming. I don't know much about SELinux so you're on your own a bit there, hopefully Google will help.

When you find the solution, please let me know so that I can add it to the docs.

Once you have got "clamdscan /var/zendto/incoming" working, you should be there.

Thanks,
Jules.



getting:

Upload Error

The attempt to virus-scan your drop-off failed. Please contact your administrator for assistance.


after the file uploads


Where should I start looking first?


----------------------------
Gavin Silver








_______________________________________________

ZendTo mailing list

ZendTo at zendto.com<mailto:ZendTo at zendto.com>

http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto





Jules



--

Julian Field MEng CITP CEng

www.ZendTo.com<http://www.ZendTo.com>



Need help fixing or optimising your systems?

Contact me!

Need help getting you started solving new requirements from your boss?

Contact me!



PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

Follow me at twitter.com/JulesFM
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20100721/ad539310/attachment-0001.html 


More information about the ZendTo mailing list