Bug#333351: marked as done (asterisk: Log files owned by root)

Debian Bug Tracking System owner at bugs.debian.org
Thu Nov 3 23:33:55 UTC 2005


Your message dated Tue, 11 Oct 2005 22:19:36 +0200
with message-id <20051011201936.GZ15828 at xorcom.com>
and subject line Bug#333351: asterisk: Log files owned by root
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Oct 2005 13:49:21 +0000
>From debian-bugs at rolf.leggewie.biz Tue Oct 11 06:49:21 2005
Return-path: <debian-bugs at rolf.leggewie.biz>
Received: from postman1.arcor-online.net (postman.arcor.de) [151.189.20.156] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EPKVN-0007ul-00; Tue, 11 Oct 2005 06:49:21 -0700
Received: from X20.spreadroom (p54B98501.dip0.t-ipconnect.de [84.185.133.1])
	(authenticated bits=0)
	by postman.arcor.de (8.13.4/8.13.4) with ESMTP id j9BDnH4i005549;
	Tue, 11 Oct 2005 15:49:18 +0200 (MEST)
Message-Id: <200510111349.j9BDnH4i005549 at postman.arcor.de>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Rolf Leggewie <debian-bugs at rolf.leggewie.biz>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: asterisk: Log files owned by root
X-Mailer: reportbug 3.17
Date: Tue, 11 Oct 2005 15:49:15 +0200
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: asterisk
Version: 1:1.0.7.dfsg.1-2
Severity: important

Dear VoIP Team,

thank you for packaging asterisk.

Maybe I made a mistake but today I tried to install asterisk on one of 
my computers.  Asterisk failed to start so I enabled verbose debugging 
in /etc/default/asterisk.  The reason for the failure seems to be that 
asterisk cannot open /var/log/asterisk/messages for writing since it is 
owned by root as are event_log and queue_log.  I cannot remember 
changing those files so I assume they were created by the package with 
that ownership.  Maybe you want to take a look.

Regards

Rolf

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'pool')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-686
Locale: LANG=de_DE.utf8 at euro, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)

Versions of packages asterisk depends on:
ii  asterisk-config         1:1.0.7.dfsg.1-2 config files for asterisk
ii  asterisk-sounds-main    1:1.0.7.dfsg.1-2 sound files for asterisk
ii  libasound2              1.0.9-3          ALSA library
ii  libc6                   2.3.5-6          GNU C Library: Shared libraries an
ii  libgsm1                 1.0.10-13        Shared libraries for GSM speech co
ii  libncurses5             5.4-9            Shared libraries for terminal hand
ii  libnewt0.51             0.51.6-30        Not Erik's Windowing Toolkit - tex
ii  libpq3                  1:7.4.8-17       PostgreSQL C client library
ii  libpri1                 1.0.9-3          Primary Rate ISDN specification li
ii  libspeex1               1.1.6-2          The Speex Speech Codec
ii  libsqlite0              2.8.16-1         SQLite shared library
ii  libssl0.9.7             0.9.7g-2         SSL shared libraries
ii  libtonezone1            1:1.0.9.1-3      tonezone library (runtime)
ii  unixodbc                2.2.4-11         ODBC tools libraries
ii  zlib1g                  1:1.2.3-4        compression library - runtime

asterisk recommends no packages.

-- no debconf information

---------------------------------------
Received: (at 333351-done) by bugs.debian.org; 3 Nov 2005 22:56:47 +0000
>From pkg-voip-maintainers-bounces at lists.alioth.debian.org Thu Nov 03 14:56:47 2005
Return-path: <pkg-voip-maintainers-bounces at lists.alioth.debian.org>
Received: from 88-110-54-130.dynamic.dsl.as9105.com (bristol.purcell.id.au) [88.110.54.130] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EXo0k-0008CS-00; Thu, 03 Nov 2005 14:56:47 -0800
Received: from dell.purcell.id.au ([192.168.3.150])
	by bristol.purcell.id.au with esmtp (Exim 4.52)
	id 1EXo0Y-0001S0-Sj
	for 333351-done at bugs.debian.org; Thu, 03 Nov 2005 22:56:43 +0000
Received: from mark by dell.purcell.id.au with local (Exim 4.54)
	id 1EXo0H-0004jT-S6
	for 333351-done at bugs.debian.org; Thu, 03 Nov 2005 22:56:17 +0000
Resent-From: Mark Purcell <msp at debian.org>
Resent-To: 333351-done at bugs.debian.org
Resent-Date: Fri, 4 Nov 2005 00:56:17 +0200
Resent-Message-ID: <200511032256.17802.pkg-voip-maintainers-bounces at lists.alioth.debian.org>
Received: from master.debian.org ([146.82.138.7])
	by bristol.purcell.id.au with esmtp (Exim 4.52)
	id 1EPQep-00016C-LS
	for debian at purcell.id.au; Tue, 11 Oct 2005 21:23:37 +0100
Received: from haydn.debian.org [192.25.206.28] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1EPQeb-0005Ua-00; Tue, 11 Oct 2005 15:23:17 -0500
Received: from localhost ([127.0.0.1]:42225 helo=haydn.debian.org)
	by haydn.debian.org with esmtp (Exim 4.50)
	id 1EPQeY-0000Hl-Kg; Tue, 11 Oct 2005 20:23:14 +0000
Received: from local.xorcom.com ([62.90.10.53]:54579 helo=boole.xorcom.com)
	by haydn.debian.org with esmtp (Exim 4.50) id 1EPQeU-0000Fw-I8
	for pkg-voip-maintainers at lists.alioth.debian.org;
	Tue, 11 Oct 2005 20:23:12 +0000
Received: by boole.xorcom.com (Postfix, from userid 1000)
	id A6216724AE; Tue, 11 Oct 2005 22:19:36 +0200 (IST)
Date: Tue, 11 Oct 2005 22:19:36 +0200
From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
To: pkg-voip-maintainers at lists.alioth.debian.org
Message-ID: <20051011201936.GZ15828 at xorcom.com>
Mail-Followup-To: pkg-voip-maintainers at lists.alioth.debian.org
References: <200510111349.j9BDnH4i005549 at postman.arcor.de>
Mime-Version: 1.0
Content-Type: text/plain;
  charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200510111349.j9BDnH4i005549 at postman.arcor.de>
Organization: Xorcom*
User-Agent: Mutt/1.5.9i
X-BeenThere: pkg-voip-maintainers at lists.alioth.debian.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: VoIP package maintainers list
	<pkg-voip-maintainers.lists.alioth.debian.org>
List-Unsubscribe: <http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers>,
	<mailto:pkg-voip-maintainers-request at lists.alioth.debian.org?subject=unsubscribe>
List-Archive: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers>
List-Post: <mailto:pkg-voip-maintainers at lists.alioth.debian.org>
List-Help: <mailto:pkg-voip-maintainers-request at lists.alioth.debian.org?subject=help>
List-Subscribe: <http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers>,
	<mailto:pkg-voip-maintainers-request at lists.alioth.debian.org?subject=subscribe>
Sender: pkg-voip-maintainers-bounces at lists.alioth.debian.org
Errors-To: pkg-voip-maintainers-bounces at lists.alioth.debian.org
X-UID: 3459
Content-Length: 1721
X-Keywords: 
X-Length: 4863
Resent-Date: Thu, 03 Nov 2005 22:56:17 +0000
X-SA-Exim-Connect-IP: 192.168.3.150
X-SA-Exim-Rcpt-To: 333351-done at bugs.debian.org
X-SA-Exim-Mail-From: pkg-voip-maintainers-bounces at lists.alioth.debian.org
Subject: Re: Bug#333351: asterisk: Log files owned by root
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on bristol.purcell.id.au)
Delivered-To: 333351-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

On Tue, Oct 11, 2005 at 03:49:15PM +0200, Rolf Leggewie wrote:
> Package: asterisk
> Version: 1:1.0.7.dfsg.1-2
> Severity: important
> 
> Dear VoIP Team,
> 
> thank you for packaging asterisk.
> 
> Maybe I made a mistake but today I tried to install asterisk on one of 
> my computers.  Asterisk failed to start so I enabled verbose debugging 
> in /etc/default/asterisk.  

I wrote a small patch that adds an extra command-line switch to asterisk:
'asterisk -D' will daemonize even when -v and/or -d is used. Would such
a patch be useful for you?

> The reason for the failure seems to be that 
> asterisk cannot open /var/log/asterisk/messages for writing since it is 
> owned by root as are event_log and queue_log.  I cannot remember 
> changing those files so I assume they were created by the package with 
> that ownership.  Maybe you want to take a look.

You accidentally ran asterisk directly and not through the init.d
script., and failed to give it the option '-U asterisk' .  Thus it ran
as root (something that the init.d script prevents).

To fix the current situation:

  chown -R asterisk.asterisk /var/log/asterisk /var/run/asterisk

Anyway, in order to prevent such a situation we have added the option
"debug" to the init.d script in our package. So you'd never have to run
a plain 'asterisk -c' just to get a console to debug startup, and you
could use /etc/init.d/asterisk debug' . Longer, but safer.

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com

_______________________________________________
Pkg-voip-maintainers mailing list
Pkg-voip-maintainers at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers



More information about the Pkg-voip-maintainers mailing list