At 10:07 AM +1000 6/11/09, Ian Cheong wrote: >I've just done a clean (previous uninstall) default (configure;make;install >with no options) install of clamAV0.95.2 on MacOS10.5.7. Running freshclam >generates the following errors. > >ERROR: chdir_tmp: Can't create directory >./clamav-f6cd08cec8c72896e10b38ef34215214 >WARNING: Incremental update failed, trying to download daily.cvd >ERROR: getfile: Can't create new file >/usr/local/share/clamav/clamav-6fbf53c3126704c0b95f1b04f7d580ea in >/usr/local/share/clamav >Hint: The database directory must be writable for UID 501 (me) or GID 501 >(admin users) > >Default permission on database: >drwxrwxr-x 4 _clamav _clamav 136 11 Jun 08:24 clamav > >Freshclam.conf: DatabaseOwner _clamav > >I can easily make the error go away by giving me or everyone rw permissions >on the clamav database directory. I note this error in various fora at least >for MacOS and Windows. > >My question is: >What is the ideal secure solution for freshclam and clamav database >permissions?
What user/group is freshclam running as? Using 0.95.1 on 10.5.7, I use a periodic launchd which runs freshclam as _clamav:_clamav and it runs with no issues. Tom _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
