

Debian bug report logs - #738
INN has problems rotating its logfiles

Package: inn? ; Reported by: iwj10@cus.cam.ac.uk (Ian Jackson); 77 days
old .
-----------------------------------------------------------------------

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Tue Apr  4 09:34:55 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
        (Smail3.1.28.1 #15) id m0rwBZ5-0006gMC; Tue, 4 Apr 95 09:34 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA20050
  (5.65c/IDA-1.4.4 for <debian-bugs@pixar.com>); Tue, 4 Apr 1995 
09:34:00 -0700
Received: by bootes.cus.cam.ac.uk 
        (Smail-3.1.29.0 #30) id m0rw970-000C0xC; Tue, 4 Apr 95 14:57 BST
Received: by chiark
        id m0rw70O-0000YSZ
        (Debian /\oo/\ Smail3.1.29.1 #29.27); Tue, 4 Apr 95 12:42 BST
Message-Id: <m0rw70O-0000YSZ.ijackson@nyx.cs.du.edu>
Date: Tue, 4 Apr 95 12:42 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: Debian bugs submission address <debian-bugs@pixar.com>
Subject: INN has problems rotating its logfiles
In-Reply-To: <m0rvyG8-0000YdZ.ijackson@nyx.cs.du.edu>
References: <m0rvyG8-0000YdZ.ijackson@nyx.cs.du.edu>

Package: inn?
Version: 1.4sec-7

I get the error messages shown below, in the `daily Usenet report'.

It appears that the news.daily script is trying to do things to
/var/adm (which should be /var/log).  However, because it is running
as `news' it doesn't have the appropriate permission.

I don't think it should run as root - that would definitely be a
violation of least privelige, and it might well cause other things to
stop working.

So, should I add the `news' user to the `adm' group ?  I could do this
in INN's postinst.

I could so something similar with Smail - atm part of Smail's regular
processing runs as root when mail would do apart from the need to mess
with /var/adm.

It seems to me that it would be better, rather than having INN and
Smail's postinsts mess with the /etc/group file (which they'd have to
prompt about, I think), to have these users in the group list for
`adm' in the base system.

The candidates are, I think, `mail', `news', `daemon', `lp' and
`uucp'.  The package maintainers for uucp and lpr probably ought to
have a say about this.

If we change this in the base system, is there a way I can say
`Depends: <something> (>0.93R6)' or whatever ?  It doesn't look like
the base system's /etc/group file, the /dev directories and so forth
are notionally in a package.  IMO they should be - this provides two
benefits.  Firstly, other packages can check which version is
installed.  Secondly, the postinst script can be used to bring old
systems up to date.  The package probably shouldn't actually contain
any files - rather, the files would be grandfathered in in the way
they are at the moment, but it would contain a postinst script to fix
things up that were forgotten in earlier revisions of the base.

This sounds like quite a lot of hard work, and perhaps it is, but IMO
it is necessary to make sure that the incremental upgrading really
works properly.  I've done similar things with my Smail package and
its configuration files, and it seems to work quite well.

Ian.

> /usr/lib/news/bin/news.daily: /var/adm/expire.log: Permission denied
> /usr/lib/news/bin/news.daily: /var/adm/expire.log: Permission denied
> /usr/lib/news/bin/news.daily: /var/adm/expire.log: Permission denied
> 
> Renumbering active file.
> 
> touch: /var/adm/expire.log: Permission denied
> touch: /var/adm/unwanted.log: Permission denied
> cp: /var/adm/expire.log: No such file or directory
> /usr/lib/news/bin/scanlogs: /var/adm/expire.log: Permission denied
> cp: cannot create regular file `/var/adm/news.crit.old': Permission 
denied
> /usr/lib/news/bin/scanlogs: /var/adm/news.crit: Permission denied
> cp: cannot create regular file `/var/adm/news.err.old': Permission 
denied
> /usr/lib/news/bin/scanlogs: /var/adm/news.err: Permission denied
> cp: cannot create regular file `/var/adm/news.notice.old': Permission 
denied
> /usr/lib/news/bin/scanlogs: /var/adm/news.notice: Permission denied
> cp: cannot create regular file `/var/adm/OLD/active.old': Permission 
denied
> touch: /var/adm/unwanted.log: Permission denied
> chmod: /var/adm/unwanted.log: No such file or directory
> ln: /var/adm/unwanted.log: No such file or directory
> touch: /var/adm/unwanted.log.new: Permission denied
> chmod: /var/adm/unwanted.log.new: No such file or directory
> /usr/lib/news/bin/tally.unwanted: /var/adm/unwanted.log.new: 
Permission denied
> cat: /var/adm/unwanted.log: No such file or directory
> mv: /var/adm/unwanted.log.new: No such file or directory
> mv: cannot move `/var/adm/news/errlog.old' to `/var/adm/OLD/errlog': 
Permission denied
> ln: /var/adm/OLD/errlog: No such file or directory
> mv: /var/adm/expire.log.old: No such file or directory
> ln: /var/adm/OLD/expire.log: No such file or directory
> mv: cannot move `/var/adm/news/news.old' to `/var/adm/OLD/news': 
Permission denied
> ln: /var/adm/OLD/news: No such file or directory
> mv: active.old: No such file or directory
> mv: /var/adm/news.crit.old: No such file or directory
> ln: /var/adm/OLD/news.crit: No such file or directory
> mv: /var/adm/news.err.old: No such file or directory
> mv: /var/adm/news.notice.old: No such file or directory
> ln: /var/adm/OLD/news.notice: No such file or directory
> touch: /var/adm/unwanted.log.new: Permission denied
> chmod: /var/adm/unwanted.log.new: No such file or directory
> ln: /var/adm/unwanted.log: No such file or directory
> mv: /var/adm/unwanted.log.new: No such file or directory
-----------------------------------------------------------------------
Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson) :
New bug report received and forwarded. Full text available.
-----------------------------------------------------------------------
Report forwarded to debian-devel@pixar.com :
Bug#738 ; Package inn? . Full text available.
-----------------------------------------------------------------------
Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking
mechanism
This page last modified 06:43:02 GMT Wed 21 Jun