Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#11334 closed defect (invalid)

BUG: clamav permissions not correct on virus db/config files not set correctly

Reported by: macports-f@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version:
Keywords: clamav Cc: danielluke (Daniel J. Luke)
Port:

Description

clamav is unusable until config files are fixed and unupdatedable until permissions issues are fixed. To be able to use clamav after port installation, the following was required:

franks-computer:/opt/local/share root# ls -l

<snip>

drwxr-xr-x 4 root admin 136 Feb 4 13:02 clamav

franks-computer:/opt/local/share root# chgrp -R clamav clamav

franks-computer:/opt/local/share root# chmod -R g+w clamav

franks-computer:/opt/local/share root# ls -l

<snip>

drwxrwxr-x 4 root clamav 136 Feb 4 13:02 clamav

cd /opt/local/etc

cp -p example-clamd.conf clamd.conf

cat example-freshclam.conf >> clamd.conf

vi clamd.conf

Comment out or delete line that starts with "Example" (appears twice in clamd.conf if above instructions have been followed):

<quote>

# Comment or remove the line below.

Example

</quote>

After above has been done, freshclam CAN be run to update virus db.

Change History (6)

comment:1 Changed 17 years ago by markd@…

Summary: clamav permissions not correct on virus db/config files not set correctlyBUG: clamav permissions not correct on virus db/config files not set correctly

comment:2 Changed 17 years ago by nox@…

Milestone: Port Bugs
Priority: ExpectedNormal
Version: 1.3.2

comment:3 Changed 16 years ago by cssdev

Cc: dluke@… added
Owner: changed from macports-dev@… to dluke@…

Assigning to port maintainer.

comment:4 Changed 16 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

This is the expected behavior.

  • You need to edit the conf file to select the appropriate clamav mirror
  • The clamav port does not create a clamav user and group (and so cannot set the permissions) as in some instances the end user may want to run in non-superuser mode.

If the port were changed to create a clamav user/group, then of course this behavior should also be changed.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 15 years ago by oscar.brynolf@…

Mac OS Snow Leopard comes with a default _clamav-user (UID 82). (Maybe earlier versions of OS X has it too?)

Surely, this user is meant to be used by clamav, and thus permissions can be set correctly at install time?

Note: See TracTickets for help on using tickets.