Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Clamav-users] Default clamscan tmp dir & custom uid/gid set during configure

From: Dennis Peterson <dennispe(at)inetnw.com>
Date: Sat Sep 22 2007 - 19:58:20 EDT


Bill Landry wrote:

>
> And this works even with the clamav and amavis users and groups
> removed. I'll be updating and testing my script and will release an
> updated version soon. Thanks everyone for the feedback, I think all of
> this shows that the issue appears to be with access to /dev/null, for
> some strange reason.
>
> Bill

>> There used to be a problem with clam when started by root. Files were 
>> created and owned by root and when the clam process su'd to the run-as 
>> user it could no longer work with those startup files. That problem was 
>> corrected.

I must have been daydreaming through part of this thread - you've been using clamscan which doesn't change user id. So far as I know only clamav-milter and clamd do so and even then only when started as root. Clamscan always runs as the executing user. Someone correct me if I'm wrong here.

Doesn't explain the tmp file issue though. I do wonder now if the tmp file is ever created. Clamscan is trying to create a file from stdin but since stdin is /dev/null, does the file ever get created? If not then it will certainly fail when it tries to delete it later.

dp



Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html Received on Sat Sep 22 19:59:36 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 28 2007 - 15:33:11 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library