X2Go Bug report logs - #172
x2gobroker-authservice creates logfiles that x2gobroker-daemon can not access

version graph

Package: x2gobroker-authservice; Maintainer for x2gobroker-authservice is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2gobroker-authservice is src:x2gobroker.

Reported by: Anders Bruun Olsen <abo@dsl.dk>

Date: Wed, 17 Apr 2013 13:18:01 UTC

Severity: normal

Tags: pending

Found in version

Fixed in version

Done: tag@ymir,

Bug is archived. No further changes may be made.

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#172: [X2Go-Dev] Bug#172: x2gobroker-authservice creates logfiles that x2gobroker-daemon can not access
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 172@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 18 Apr 2013 15:18:02 +0000
Resent-Message-ID: <handler.172.B172.136629739414163@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 172
X-X2Go-PR-Package: x2gobroker-authservice
Received: via spool by 172-submit@bugs.x2go.org id=B172.136629739414163
          (code B ref 172); Thu, 18 Apr 2013 15:18:02 +0000
Received: (at 172) by bugs.x2go.org; 18 Apr 2013 15:03:14 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.0 required=5.0 tests=URIBL_BLOCKED autolearn=ham
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [])
	by ymir (Postfix) with ESMTPS id 9ED625DB05;
	Thu, 18 Apr 2013 17:03:12 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 79C6CC63;
	Thu, 18 Apr 2013 17:03:12 +0200 (CEST)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 22B383BA68;
	Thu, 18 Apr 2013 17:03:12 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([])
	by localhost (grimnir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id 9zJjaAV5-ffl; Thu, 18 Apr 2013 17:03:12 +0200 (CEST)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 01B323BABB;
	Thu, 18 Apr 2013 17:03:12 +0200 (CEST)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id D9AA33BA89;
	Thu, 18 Apr 2013 17:03:11 +0200 (CEST)
Received: by grimnir.das-netzwerkteam.de (Postfix, from userid 33)
	id 4CED83BA68; Thu, 18 Apr 2013 17:03:11 +0200 (CEST)
Received: from nocatv2.tng.de (nocatv2.tng.de []) by
 mail.das-netzwerkteam.de (Horde Framework) with HTTP; Thu, 18 Apr 2013
 17:03:11 +0200
Message-ID: <20130418170311.20301rwex8y1m4vj@mail.das-netzwerkteam.de>
X-Priority: 3 (Normal)
Date: Thu, 18 Apr 2013 17:03:11 +0200
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Anders Bruun Olsen <abo@dsl.dk>, 172@bugs.x2go.org
Cc: control@bugs.x2go.org
References:  <CAFJm-UPyT2eX42txYRtHVHr6uKjjvcWDAH=mRfr9Wi5bNXJ=og@mail.gmail.com>
In-Reply-To:  <CAFJm-UPyT2eX42txYRtHVHr6uKjjvcWDAH=mRfr9Wi5bNXJ=og@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed;
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.3.4)
[Message part 1 (text/plain, inline)]
tag #172 pending
fixed #172

Hi Anders,

On Mi 17 Apr 2013 15:03:38 CEST Anders Bruun Olsen wrote:

> Package: x2gobroker-authservice
> Version:
> When x2gobroker-authservice starts, it creates four files in
> /var/log/x2gobroker: access.log, authservice.log, broker.log and error.log
> (if they do not already exist). Because x2gobroker-authservice is running
> as root, these files will be owned by root and have permission mode 644.
> This makes them unwriteable to anybody but root. When x2gobroker-daemon
> starts it will attempt to open at least /var/log/x2gobroker/broker.log, but
> since x2gobroker-daemon runs as the user x2gobroker, it can't open that
> file in write-mode. This makes the daemon exit without any error messages
> when started by the init-system. It might be best to make
> x2gobroker-authservice keep to it's own set of log-files to avoid this
> problem. A work-around is to chown ownership of the files to the user
> x2gobroker.

This commit should draw a separation line between  
x2gobroker-authservice logging and the logging of the broker daemon:



mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Feb 25 08:54:02 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.