From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UJycMKBBe18NRQAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 15:54:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sBNgLKBBe19eZAAAbx9fmQ (envelope-from ) for ; Mon, 05 Oct 2020 15:54:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2B8FC9400AD for ; Mon, 5 Oct 2020 15:54:08 +0000 (UTC) Received: from localhost ([::1]:33896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPSoR-0002Gd-0N for larch@yhetil.org; Mon, 05 Oct 2020 11:54:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPSlS-0006aH-Qx for guix-patches@gnu.org; Mon, 05 Oct 2020 11:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPSlS-0000wo-GG for guix-patches@gnu.org; Mon, 05 Oct 2020 11:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPSlS-0003uu-FL for guix-patches@gnu.org; Mon, 05 Oct 2020 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43816] [PATCH] services: gitolite: Install the rc file as gitolite's user. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Oct 2020 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43816 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43816@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160191305915043 (code B ref -1); Mon, 05 Oct 2020 15:51:02 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=Ej9BggTV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.59 X-TUID: 14TyE4e3jDHv --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--