<!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 text="#000000" bgcolor="#ffffff">
    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>
    <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><small><small><small><a
                              href="http://open.edu/itunes/"><font
                                color="#7f7f7f" face="Helvetica, Arial,
                                sans-serif"></font></a></small></small></small><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></body>
</html>