Koozali.org: home of the SME Server

Virus-Scan An Upload To Moodle Fails

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Virus-Scan An Upload To Moodle Fails
« on: May 09, 2008, 09:23:51 PM »
Hi all,
System is an up to date SME 7.3 running moodle-1.8.3-1.el4.sme

In Moodle setup one can set the server to scan uploads and to quarantine suspect files.
I've enabled this and tried all the following paths to Clam AV, one by one:
/usr/bin/clamscan
/usr/bin/clamdscan
/usr/sbin/clamd
/sbin/e-smith/smeserver-clamscan

All the above cause an error similar to the following:
Quote
Moodle is configured to run clam on file upload, but the path supplied to Clam
AV, /sbin/e-smith/smeserver-clamscan,  is invalid.

A list search reveals nothing. Has anyone experienced this?

Thanks,
« Last Edit: May 09, 2008, 09:26:03 PM by ardugh »
SME Server is a fantastic product - thank you!

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Virus-Scan An Upload To Moodle Fails
« Reply #1 on: May 09, 2008, 09:41:34 PM »
Did you try just the path (not including any file name)?

/usr/bin/
In life, you must either "Push, Pull or Get out of the way!"

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Virus-Scan An Upload To Moodle Fails
« Reply #2 on: May 09, 2008, 09:53:15 PM »
pfloor

Made an edit as you suggest. Time will tell, and I will report back on this.
I've being trying full paths because prompts in moodle on the settings page suggested that:
Quote
Path to clam AV. Probably something like /usr/bin/clamscan or /usr/bin/clamdscan. You need this in order for clam AV to run

Thanks,
SME Server is a fantastic product - thank you!

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Regards,
William

IF I give advise.. It's only if it was me....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Virus-Scan An Upload To Moodle Fails
« Reply #4 on: May 10, 2008, 07:24:07 AM »
pfloor

Made an edit as you suggest. Time will tell, and I will report back on this.
I've being trying full paths because prompts in moodle on the settings page suggested that:
Thanks,
I think it should be the full path then, which on SME Server is /usr/bin/clamscan. The problem might very well be that the user the webserver is running under (www) is not allowed to execute files located there because of security measures, not sure if that is true for SME Server as I have never tested such things.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Virus-Scan An Upload To Moodle Fails
« Reply #5 on: May 12, 2008, 11:01:45 PM »
pfloor

Quote
Moodle is configured to run clam on file upload, but the path supplied to Clam
AV, /usr/bin/,  is invalid.
The above produces the same result as my original post.

cactus
Quote
The problem might very well be that the user the webserver is running under (www) is not allowed to execute files located there because of security measures,
I hear what you say, but this is reasonably fundamental, surely and would have been tested before releasing a contrib? Seems unlikely I'm the 1st to experience this.

william_syd
both links you gave take me here?
Quote
http://moodle.org/login/index.php
EDIT: log in a guest takes one to a Clam AV thread. I'm reading that now -
Majority of comments refer to /usr/bin/clamscan or /usr/bin/clamdscan being unexecutable by the user the webserver is running as.
What is that, in the case of sme server? How would one test a change to that on sme server without messing up all the other web based stuff?
On this particular server:
Quote
[root@tincan bin]# ls -l cl*
-rwxr-xr-x  1 root root 24078 Apr 16 19:18 clamconf
-rwxr-xr-x  1 root root 46094 Apr 16 19:18 clamdscan
-rwxr-xr-x  1 root root 57427 Apr 16 19:18 clamscan

Maybe I must create a bug?
« Last Edit: May 12, 2008, 11:30:09 PM by ardugh »
SME Server is a fantastic product - thank you!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Virus-Scan An Upload To Moodle Fails
« Reply #6 on: May 13, 2008, 12:55:26 PM »
I hear what you say, but this is reasonably fundamental, surely and would have been tested before releasing a contrib? Seems unlikely I'm the 1st to experience this.
It could very well be that not all functionality is tested as Moodle is a big package. You should have to contact the author for that, and the best way to do so, indeed, would be to raise a bug against the contrib.
« Last Edit: May 13, 2008, 12:56:59 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Virus-Scan An Upload To Moodle Fails
« Reply #7 on: May 25, 2008, 11:13:22 AM »
SME Server is a fantastic product - thank you!

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
SOLVED - Virus-Scan An Upload To Moodle Fails
« Reply #8 on: June 04, 2008, 02:11:47 PM »
Quote
I have raised Bug 4369:
http://bugs.contribs.org/show_bug.cgi?id=4369

The advice received from S Noble via the bug tracker has resolved this particular issue.
SME Server is a fantastic product - thank you!