<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
In which case you need to set the permissions in /var/zendto
correctly.<br>
<br>
From my website, do this:<br>
usermod -a -G apache clamav<br>
usermod -a -G apache clam<br>
chown clam /var/log/clamav/clamd.log<br>
service clamd restart<br>
<br>
And the permissions inside /var/zendto should look like this:<br>
$ ls -al<br>
total 696<br>
drwxrwxr-x. 6 root apache 4096 Feb 24 10:40 .<br>
drwxr-xr-x. 24 root root 4096 Feb 24 09:57 ..<br>
drwxr-xr-x. 173 apache apache 12288 Jun 16 10:25 dropoffs<br>
drwxr-xr-x. 2 apache apache 4096 Jun 16 10:25 incoming<br>
drwx------. 2 root root 16384 Feb 24 09:28 lost+found<br>
drwxr-xr-x. 2 apache apache 4096 Feb 25 12:02 rrd<br>
-rw-rw-r--. 1 apache apache 661510 Jun 16 10:37 zendto.log<br>
<br>
Jules.<br>
<br>
On 15/06/2011 16:10, Mark Hudson wrote:
<blockquote cite="mid:4DF8CB5A.6060806@open.ac.uk" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
On 15/06/11 10:02, Jules wrote:
<blockquote cite="mid:4DF87511.5080701@Zend.To" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<br>
<br>
On 14/06/2011 17:35, Mark Hudson wrote:
<blockquote cite="mid:4DF78DDC.9070907@open.ac.uk" type="cite">
OK, I've had time to start again from scratch.<br>
<br>
So far so good! Seems impressive!<br>
<br>
Managed to get authentication against Active Directory to
work.<br>
<br>
Had to modify php.ini to include timezone settings to avoid
strftime warnings all over the place<br>
<br>
Can't get clamdscan to behave - just displays the user an
error but nothing is written to the clam or the zendto logs<br>
</blockquote>
That's usually caused by SELinux or AppArmor, depending on what
distribution you use.<br>
On the command line, as root do<br>
clamdscan /var/zendto<br>
</blockquote>
<br>
[root@idris config]# clamdscan /var/zendto<br>
/var/zendto/dropoffs/Zp9W2yHNSNtAZ983: lstat() failed: Permission
denied. ERROR<br>
/var/zendto/dropoffs/TWYyX6ow5zsbUJww: lstat() failed: Permission
denied. ERROR<br>
/var/zendto/dropoffs/VEiaaKMpvTD5f9Qi: lstat() failed: Permission
denied. ERROR<br>
/var/zendto/dropoffs/hTVGce8kcY9EmKbt: lstat() failed: Permission
denied. ERROR<br>
<br>
<blockquote cite="mid:4DF87511.5080701@Zend.To" type="cite"> and
see what it says. If it spits permissions errors, that's usually
SELinux/AppArmor getting in the way, you can confirm this by
trying to clamdscan /root (when you're logged in as root).<br>
</blockquote>
<br>
[root@idris config]# clamdscan /root<br>
/root: lstat() failed: Permission denied. ERROR<br>
<br>
Yet SELINUX is configured to be permissive, not enforcing.<br>
<br>
[root@idris config]# getenforce <br>
Permissive<br>
<br>
<br>
This is on RHEL.<br>
<br>
Mark<br>
<font face="monospace"><br>
-- <br>
The Open University is incorporated by Royal Charter (RC
000391), an exempt charity in England & 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>