<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    On 15/06/2011 16:19, Mark Hudson wrote:
    <blockquote cite="mid:4DF8CD6B.9040201@open.ac.uk" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      On 15/06/11 10:13, Jules wrote:
      <blockquote cite="mid:4DF877A7.50701@Zend.To" type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <br>
        <br>
        On 15/06/2011 08:55, Mark Hudson wrote:
        <blockquote cite="mid:4DF8655B.2060507@open.ac.uk" type="cite">
          Yes, that's the one. <br>
          <br>
          So changing that setting nails that one, the only other issue
          is with clamdscan failing (but changing the pref to use
          clamscan works).<br>
        </blockquote>
        Clamscan is a lot slower. The problems with clamd and clamdscan
        are caused by either or both of<br>
        1) SELinux/AppArmor not allowing clamd to read the directory.
        The notes on installing ZendTo on an existing
        CentOS/RedHat/Ubuntu system will tell you what you need to set.<br>
        2) Permissions in /var/zendto. The clamd daemon must be able to
        read all the directories and files in /var/zendto/incoming. It
        doesn't run as root, it runs as a user defined in
        /etc/clamd.conf. *That* user must be able to read everything.<br>
        <br>
        Running clamdscan from the command line is a very quick way of
        debugging this.<br>
        <br>
      </blockquote>
      <br>
      Ah, sussed it. The instructions on the zendto site say to create a
      user called clamav and <br>
      <br>
      usermod -a -G apache clamav<br>
      <br>
      but /etc/clamd.conf says to run as a user called clam (both clam
      and clamav exist as users)<br>
      <br>
      So I've usermod -a -G apache clam<br>
      <br>
      And that seems to have fixed it!<br>
    </blockquote>
    Glad you got there. The commands you need (including that one) are
    listed on zend.to/centos.php in the "Set Permissions For Virus
    Scanning" section.<br>
    <br>
    Jules.<br>
    <blockquote cite="mid:4DF8CD6B.9040201@open.ac.uk" type="cite"> <br>
      Mark<br>
      <br>
      <div class="moz-signature">
        <table>
          <tbody>
            <tr>
              <td>
                <table height="92" width="476">
                  <tbody>
                    <tr>
                      <td><br>
                      </td>
                      <td><br>
                      </td>
                    </tr>
                    <tr>
                      <td><br>
                      </td>
                      <td><br>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <font face="monospace"><br>
        -- <br>
        The Open University is incorporated by Royal Charter (RC
        000391), an exempt charity in England &amp; Wales and a charity
        registered in Scotland (SC 038302).</font>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'All programs have a desire to be useful' - Tron, 1982
</pre>
  </body>
</html>