[arch-general] Starting 9/15 new error - stat of /var/log/clamav/clamd.log failed

Tinu Weber takeya at bluewin.ch
Sat Sep 22 08:14:30 UTC 2018


On Fri, Sep 21, 2018 at 16:48:14 -0500, David C. Rankin wrote:
> On 09/21/2018 02:17 AM, Andy Pieters wrote:
> >>   But the file is there:
> >>
> >> $ l /var/log/clamav/clamd.log
> >> -rw-r--r-- 1 clamav clamav 0 Aug 30  2015 /var/log/clamav/clamd.log
> >>
> >>
> > Could be a permissions issue. If a user cannot access /example/ then
> > it cannot see if /example/test exists and will give a no such file or
> > directory error.
> 
> Well, that what I was investigating, but the log is world readable, so that
> can't be the case -- and the only permissions needed to stat a file is read
> permission.

So *all* the parent directories (/var, /var/log, and /var/log/clamav)
are world-readable?

The permissions on /var/log/clamav/clamd.log don't really matter - it
could have permissions 0000 ({read,writ,execut}able by nobody), and one
could still stat it correctly.

Best,
--Tinu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20180922/27fb0264/attachment.asc>


More information about the arch-general mailing list