From mike.gabriel@das-netzwerkteam.de Thu Apr 18 17:03:12 2013 Received: (at control) by bugs.x2go.org; 18 Apr 2013 15:03:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) 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 [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 79C6CC63; Thu, 18 Apr 2013 17:03:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) 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 ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9zJjaAV5-ffl; Thu, 18 Apr 2013 17:03:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 01B323BABB; Thu, 18 Apr 2013 17:03:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) 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 [213.178.75.58]) 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 To: Anders Bruun Olsen , 172@bugs.x2go.org Cc: control@bugs.x2go.org Subject: Re: [X2Go-Dev] Bug#172: x2gobroker-authservice creates logfiles that x2gobroker-daemon can not access References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_1p170d88njn3"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.4) This message is in MIME format and has been PGP signed. --=_1p170d88njn3 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit tag #172 pending fixed #172 0.0.1.1 thanks Hi Anders, On Mi 17 Apr 2013 15:03:38 CEST Anders Bruun Olsen wrote: > Package: x2gobroker-authservice > Version: 0.0.1.0-0~334~precise1 > > 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: http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=620140e5cc38e3f84d014042f54c1235347c4923 Greets, Mike -- DAS-NETZWERKTEAM 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 freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb --=_1p170d88njn3 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Unterschrift Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJRcAsvAAoJEJr0azAldxsxibAP/jfBXSM43hSKVXkkBNbLsxyJ 6BqvZJy7ZpwAziHV3VT1BssHw74AW0hHAVHQfBD/ID400CCGYqniBVGVOqdGi/b6 kPegeQIs830MyMKUEc9uHOpA78le85EJDz7GqhfJJKWKamTATmYQOW4RYu/C3Bnx tASV/PohFdx20uNj6EHmo0EYrgh9Uz8P7i3cXg2vWbTgaJQNbk3y2Ea/ZXsfYg/m xn9un4QkGfMitQBQByBtWFn3OYNfzMlM1sqH9ol6dfKVTwuBfZAecTQt7MOetDJS 1aMpelWmOXRG3nP3jv1nMzmp6gKIpyyjmahsk729FMG5EwTILidpeW0OVhmC2b2R maQQMiHJ15Vr9WApXCifpb3YEDJGxeDpnicOTdgdwOGcY5O50yKIpC/mVlVZ9W9K 73Q0sVPPcz1y6zz2o9q1siKeIbvyUZmBFqSksUpcjz8fNI/ruAvt2QG3M+t+VB4V vqZjr1xgG/JVD9awSxSBP3CwT7BVvTlvj2qUe5Tz4KmfVps/6uNf715EOjfAuq2j 2+BALVP4gpX3zJTQQ+n656MWzEg2GkZ0MRIf54txWYDht0McdwX1eaLlHyYNdMdN n68DgknDmn2Xi2HfLHE6DK5DIevUG/o2whB/oYzs4FKpzV/uCL+x6ckt3wwM/dVf 4Gi2N6w2t1t4iFcyax6u =0L+p -----END PGP SIGNATURE----- --=_1p170d88njn3--