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

Grahame White grahame at regress.homelinux.org
Tue Jul 19 12:37:10 UTC 2005


On Tuesday 19 July 2005 13:06, you wrote:
> 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?

It was a standard woody install that I upgraded to sarge. I haven't touched 
the permissions on this directory myself so I assume that whatever program 
created it set them like that.

>
> which are the member of aboves group:
> getent group smmsp

No one is in the group.

>
>
> 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).

Certainly shouldn't! I just double-checked, I don't even have sendmail 
installed :)

> or you add logcheck to aboves group:
> adduser --quiet logcheck smmsp
>
> --
> maks





More information about the Logcheck-devel mailing list