From unknown Sat Jun 21 10:42:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43816 <43816@debbugs.gnu.org> To: bug#43816 <43816@debbugs.gnu.org> Subject: Status: [PATCH] services: gitolite: Install the rc file as gitolite's user. Reply-To: bug#43816 <43816@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:42:46 +0000 retitle 43816 [PATCH] services: gitolite: Install the rc file as gitolite's= user. reassign 43816 guix-patches submitter 43816 Julien Lepiller severity 43816 normal tag 43816 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 05 11:50:58 2020 Received: (at submit) by debbugs.gnu.org; 5 Oct 2020 15:50:59 +0000 Received: from localhost ([127.0.0.1]:50270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPSlO-0003uZ-Nh for submit@debbugs.gnu.org; Mon, 05 Oct 2020 11:50:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:41062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPSlL-0003uR-RM for submit@debbugs.gnu.org; Mon, 05 Oct 2020 11:50:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPSlK-0006Se-Sl for guix-patches@gnu.org; Mon, 05 Oct 2020 11:50:55 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:47138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPSlI-0000s9-Eg for guix-patches@gnu.org; Mon, 05 Oct 2020 11:50:54 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id eeff669e for ; Mon, 5 Oct 2020 15:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=zun RhzmI6d5tu59gOHAwBEqdpDJA4hYVzLXj8uQdpmE=; b=Ej9BggTVuYg8lyAVege guejt6mdKLI5uvAu//UFy0OtqKL7DOSgncb8WhhTiUNXtRSgFtOIaYezxUfi/z5T AEYZ1bI4WAgHDSStyqAMsihZNt0KqyUf+7y+OErE77KktXwvCRYShGdjZn3pm7pt MOr+v1iNIXZmJUft3zK8ee0ONQL2POt6Xz28zlq68D/GP8cMGPXrScXR7wWOPVb7 E9R5/Z5cs6fKJ+paYFtex3bU841Hgflq03pemjtdDzs0Q/xxlHM/s/r8Szveoo7L 5gebqrI2HtL1Ezstd2i293nJOs1efQm5jqud6U0WnR46E250mwn4RXjZR1Y4aMmw c6A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id aebe4793 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 5 Oct 2020 15:50:46 +0000 (UTC) Date: Mon, 5 Oct 2020 17:50:29 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: [PATCH] services: gitolite: Install the rc file as gitolite's user. Message-ID: <20201005175029.5f89e6b9@tachikoma> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/jb6+sSSiOuRlxToJAz0PcbW" Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --MP_/jb6+sSSiOuRlxToJAz0PcbW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guix! I had some issues when installing my gitolite service. Turns out the .gitolite.rc file, that contains gitolite's configuration, was owned by root, with no access to others. This patch fixes that by using chown on it. --MP_/jb6+sSSiOuRlxToJAz0PcbW Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-services-gitolite-Install-the-rc-file-as-gitolite-s-.patch >From abaac031616bbae42c455fdbe44b680e7da93d44 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 5 Oct 2020 17:47:13 +0200 Subject: [PATCH] services: gitolite: Install the rc file as gitolite's user. * gnu/services/version-control.scm (gitolite-activation): Install the rc file as gitolite's user. --- gnu/services/version-control.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm index cc07f8025b..f3df0b979f 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm @@ -307,10 +307,15 @@ access to exported repositories under @file{/srv/git}." (pubkey-file (string-append #$home "/" (basename - (strip-store-file-name admin-pubkey))))) + (strip-store-file-name admin-pubkey)))) + (rc-file #$(string-append home "/.gitolite.rc"))) (simple-format #t "guix: gitolite: installing ~A\n" #$rc-file) - (copy-file #$rc-file #$(string-append home "/.gitolite.rc")) + (copy-file #$rc-file rc-file) + ;; ensure gitolite's user can read the configuration + (chown rc-file + (passwd:uid user-info) + (passwd:gid user-info)) ;; The key must be writable, so copy it from the store (copy-file admin-pubkey pubkey-file) -- 2.28.0 --MP_/jb6+sSSiOuRlxToJAz0PcbW-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 05 13:18:48 2020 Received: (at 43816) by debbugs.gnu.org; 5 Oct 2020 17:18:48 +0000 Received: from localhost ([127.0.0.1]:50442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPU8N-0006AS-Py for submit@debbugs.gnu.org; Mon, 05 Oct 2020 13:18:47 -0400 Received: from mira.cbaines.net ([212.71.252.8]:48380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPU8M-0006AK-Pb for 43816@debbugs.gnu.org; Mon, 05 Oct 2020 13:18:47 -0400 Received: from localhost (92.41.184.114.threembb.co.uk [92.41.184.114]) by mira.cbaines.net (Postfix) with ESMTPSA id 5495327BBE8; Mon, 5 Oct 2020 18:18:46 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 066e03e4; Mon, 5 Oct 2020 17:18:44 +0000 (UTC) References: <20201005175029.5f89e6b9@tachikoma> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines To: Julien Lepiller Subject: Re: [bug#43816] [PATCH] services: gitolite: Install the rc file as gitolite's user. In-reply-to: <20201005175029.5f89e6b9@tachikoma> Date: Mon, 05 Oct 2020 18:18:43 +0100 Message-ID: <877ds41tho.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43816 Cc: 43816@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Julien Lepiller writes: > Hi Guix! > > I had some issues when installing my gitolite service. Turns out the > .gitolite.rc file, that contains gitolite's configuration, was owned by > root, with no access to others. This patch fixes that by using chown on > it. As mentioned on IRC, this looks good to me :) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl97VXNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xe+XA/7BEfQxC6KeyXQVwIqtmJed89M4RLMcQkh JhGSD9p1GNraiZnvOnEKtrbmYPUOuyHGyazQejvS9Zn/gHpTy74wwo6j1LK7YtBJ ZS6wwaZRG/sRaFGnAwwNa1H1+bJKFEMVxzDdw+uQBhz4R4MG/x3t4mIUGBBv7A2g EUZT7f+c2tYzf9MLNbIZr4QQBskhX5iIs/9zzQf/fbMelI6iB4I3kKOO/9qt5SUI wG3r+llMYdUTS9GQ0EVqEMvpws1AjtDSqozK6b7DVFHpXgEB5Hjvz2XWpEbWf9Wz 7Gdy90YfRCdej5qQXXMgP0gezBobbxYK45o7kXlsZseKLj+cEjetNUz1UxPLc5xA QgKQ27NuQPfJ0QptsklALLQSR4Ixurx2GOkopLCmdaJCjoTEb1ygNicUsAQZsDzm lkbtJ/H8SXDuabYdMy98h46Ruh5H81Ly6t+7VqwuUeQZIEdKriHYaZCtovgX1Swk DlEE2N8byy+F+LZMqPXn2W2z1kTHk05vGTio2n99up6U/sPQtDBsyusXpKmh/qxB jBjGokhQlPGvF/CUA3a0JoS2kRxP4xZQcSgq/19/sh+jFNBAna2ZSs1OCv1qfGg+ NUtsBLj6eAsTIdrRSJ4M1IknDMa37lqxdS4CRUIAOdi2TKKfQQRq4j2z7L+vYyvZ 2RWjy3pf92o= =JXZO -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 05 13:43:37 2020 Received: (at 43816-done) by debbugs.gnu.org; 5 Oct 2020 17:43:37 +0000 Received: from localhost ([127.0.0.1]:50495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPUWP-0006ne-8u for submit@debbugs.gnu.org; Mon, 05 Oct 2020 13:43:37 -0400 Received: from lepiller.eu ([89.234.186.109]:53430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPUWN-0006nT-7j for 43816-done@debbugs.gnu.org; Mon, 05 Oct 2020 13:43:36 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id f4c96342; Mon, 5 Oct 2020 17:43:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=G/V9RBfvm0P1 ObZWuYhaBOQDG8QSJhb/bD9Nxn6Qahc=; b=LnVrcftSsdXIPmTRSSTL5Qyit0oU fYDTEd2LBA+INyUv1JYTsnITHXWka2vEV7KV3Fh03pq+Kuat6qeCFMoHcZR4Kfh3 VClyL1CUXiXpdP/gSy8C5dNRV7MlJkAavk6yUeZx9iIEwmf2K2Z8D0Pw6UaZTxRm cVvp7HEhx7O0A3wZvNmRBh7Gt5d5VPy3a5Sz8PMi4kB68rF0hogOoYFblPiUIe66 tNTfaBOmciXOBrvpEDifz+8d/4R5Og9ptq1QD+g1DHnE0nqOc88xnaJJP16SGPuU y4QppNi+9YlPeGpzwagHov9ZYjbKRt1hEWK9mSY4oaO08KH39XB7msrEHw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id aa155c74 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 5 Oct 2020 17:43:32 +0000 (UTC) Date: Mon, 5 Oct 2020 19:43:16 +0200 From: Julien Lepiller To: Christopher Baines Subject: Re: [bug#43816] [PATCH] services: gitolite: Install the rc file as gitolite's user. Message-ID: <20201005194316.0b022d3f@tachikoma> In-Reply-To: <877ds41tho.fsf@cbaines.net> References: <20201005175029.5f89e6b9@tachikoma> <877ds41tho.fsf@cbaines.net> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43816-done Cc: 43816-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank you, pushed as 4e3ed9bad9ed5758cdee6e636805f65e9ab710eb. From unknown Sat Jun 21 10:42:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Nov 2020 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator