On Jan 16, 2007, at 3:52 PM, Stephen Gran wrote:
I am sorry if I came across as harsher than I intended to. I know
that
you were part of the earlier discussion and provided valuable insight.
No harm done.
However, your research so far seems to have focused on freshclam
rather
than clamscan, which is where I thought the OPs problem lay. clamscan
explicitly exits if getpwnam() returns NULL on a query for the compile
time user. I have not investigated freshclam's behavior, as I
assume it
can indeed honor it's config file, but I thank you for looking into it
and confirming my hope.
In the case of clamscan, we have (from clamscan/manager.c around line
70):
if(!geteuid()) {
if((user = getpwnam(UNPUSER)) == NULL) {
mprintf("@Can't get information about user "UNPUSER"\n");
exit(60); /* this is critical problem, so we just exit
here */
}
}
If the euid is 0 (aka root), and you can't look up the pw entry for
the UNPUSER (which ought to be "clamav", but maybe was changed to
root), then bail with the error message the OP mentioned.
I wonder if making sure that whoever it is has a "clamav" user in
LDAP/OpenDirectory would help. Otherwise, considering that the
version which comes with an OS X system is somewhat dated, perhaps it
would be easiest for the OP to simply build the latest version and
make sure that the compiled-in user exists in whatever directory-
services they are using.
--
-Chuck
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html