Discussion:
[clamav-users] Mac: clamAV vs. Mojave
Michael Newman
2018-10-23 22:26:57 UTC
Permalink
After installing Mojave I’ve run into two problems:

ERROR: Can't open /private/var/log/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /private/var/log/freshclam.log).

What should the ownership and permission be for the log file and the parent directory?

I have clamav set up to scan my entire home directory. Never received any error messages, but after installing Mojave I get many errors regarding ~/Library, like this:

/Users/mnewman/Library/Application Support/AddressBook: lstat() failed: Operation not permitted. ERROR

What does this mean and how do I fix it?


_______________________________________________
clamav-users mailing list
clamav-***@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contac
Eric Tykwinski
2018-10-23 22:50:03 UTC
Permalink
Well definitely a permissions issue, my guess is that you used a binary installation.
Make sure the user that’s running freshclam has permissions to write to /private/var/log/freshclam.log

Personally, I usually just use Homebrew, https://brew.sh/ <https://brew.sh/>
That will copy it to /usr/local/var/log/freshclam.log under the user that installed.

For multiple users I’ll run clamdscan under root, but that comes with it’s own issues for notifying users.
Someone forked my work and just decided to email users which works.

Sincerely,

Eric Tykwinski
TrueNet, Inc.
P: 610-429-8300
Post by Michael Newman
ERROR: Can't open /private/var/log/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /private/var/log/freshclam.log).
What should the ownership and permission be for the log file and the parent directory?
/Users/mnewman/Library/Application Support/AddressBook: lstat() failed: Operation not permitted. ERROR
What does this mean and how do I fix it?
_______________________________________________
clamav-users mailing list
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
Michael Newman
2018-10-24 01:48:57 UTC
Permalink
Post by Eric Tykwinski
Well definitely a permissions issue, my guess is that you used a binary installation.
Make sure the user that’s running freshclam has permissions to write to /private/var/log/freshclam.log
Yes, I used a binary installation. I’ve never figured out how to use Brew. So many incomprehensible error messages. Sorry.

In any event, I’ve got the permissions issue with the freshclam.log sorted.

But, I’m still having problems with clamd and some files in: ~/Library/

I’m getting numerous error messages like:

/Users/mnewman/Library/Calendars: lstat() failed: Operation not permitted. ERROR

I don’t really know, but I’m guess that clamd uses lstat() to examine symbolic links. It was working pre-Mojave, but fails now.

Is there anything I can do about this?

Loading...