Bug#312412: [Logcheck-devel] Bug#312412: logcheck: Fails to read files under /var/log/mail/

maximilian attems debian at sternwelten.at
Tue Jul 19 12:06:47 UTC 2005


On Tue, 19 Jul 2005, Grahame White wrote:

> On Tuesday 19 July 2005 12:07, maximilian attems wrote:
<snipp>
> > > > On Wed, 08 Jun 2005, Grahame white wrote:
> > > > > Since upgrading from woody to sarge I've been getting the
> > > > > following apperaring in the reports sent by logcheck:
> > > > >
> > > > > E: File could not be read: /var/log/mail/mail.err
> > > > > E: File could not be read: /var/log/mail/mail.warn
> > > > > E: File could not be read: /var/log/mail/mail.info
> > > > > E: File could not be read: /var/log/mail/mail.log
> >
> > rereading your bug report.
> > i forgot to ask about the permissions of the /var/log/mail/ dir.
> > please send the ouput of
> > ls -ld /var/log/mail/
> 
> drwxrws---  2 root smmsp 1024 Jul 19 06:30 /var/log/mail/

aah cool, no way logcheck could read inside of that dir.
sorry for my sendmail ignorance, but is that the default permission,
or did you harden it somehow?
is that an sarge installation or woody upgrade?

which are the member of aboves group:
getent group smmsp


either you change aboves dir to be readable for the adm group
chgrp adm /var/log/mail/
(shouldn't pose problems to sendmail as it doesn't write aboves
 file with smmsp group permissions).
or you add logcheck to aboves group:
adduser --quiet logcheck smmsp

--
maks






More information about the Logcheck-devel mailing list