From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cBfWBhWJAWKnaAEAgWs5BA (envelope-from ) for ; Mon, 07 Feb 2022 22:03:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SENDBBWJAWKMgwEA9RJhRA (envelope-from ) for ; Mon, 07 Feb 2022 22:03:17 +0100 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 D6C3C279C1 for ; Mon, 7 Feb 2022 22:03:16 +0100 (CET) Received: from localhost ([::1]:39730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHBAJ-0004Iv-TM for larch@yhetil.org; Mon, 07 Feb 2022 16:03:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHBA6-0004Im-7r for bug-guix@gnu.org; Mon, 07 Feb 2022 16:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHBA5-0007lj-VJ for bug-guix@gnu.org; Mon, 07 Feb 2022 16:03:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHBA5-0001N1-T6 for bug-guix@gnu.org; Mon, 07 Feb 2022 16:03:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53752: guix home symlink permissions Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 07 Feb 2022 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53752 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Zacchaeus Scheffer , Liliana Marie Prikler Received: via spool by 53752-submit@debbugs.gnu.org id=B53752.16442677515229 (code B ref 53752); Mon, 07 Feb 2022 21:03:01 +0000 Received: (at 53752) by debbugs.gnu.org; 7 Feb 2022 21:02:31 +0000 Received: from localhost ([127.0.0.1]:43935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHB9b-0001MH-4s for submit@debbugs.gnu.org; Mon, 07 Feb 2022 16:02:31 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:39314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHB9Y-0001M7-3V for 53752@debbugs.gnu.org; Mon, 07 Feb 2022 16:02:29 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id sM2S260034UW6Th01M2SbL; Mon, 07 Feb 2022 22:02:26 +0100 Message-ID: <49b4975e6c61a7ed0010c850b52dab811e4803b7.camel@telenet.be> From: Maxime Devos Date: Mon, 07 Feb 2022 22:02:26 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-X5UHaOlAHGDtsQzwQmPO" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1644267746; bh=4b1qjIoN37z9uerkIsU5vY8UusH2hAMsnvyGClO+T0Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Pdc6o1SJ0jfROS2Ajxu5DtRP+DlAU2a9mqT8AT5vjGbQrxfbJ5Xkx7IQ5X10WpiDJ csz85gBXndZFkACucJjHHwpEprS1gzgavUFhbkZe2RLEoEYRt7FxSkwoZ2KpWHfXP7 blbK2X85SWENfIhxWvimvmMFxPpNwpFItbyu6M0k7llcn2RhPA1yS39IQlRhR1Kgbk 88cRSHwHnMpNSyzb4CTZXMBLbY8YD7JJ7emnQVRg/54wcvhryE0ZOdkSGnO2AW/OXW HZmJtIb0p32rrXxn9bPL5QRA9PcK0jY9pIzreUhktHilKpWfbaIoPNNLq3GMCM5zx/ 3w58xQGapL3zg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 53752@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644267796; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=4b1qjIoN37z9uerkIsU5vY8UusH2hAMsnvyGClO+T0Q=; b=lB9rpGMX0qqKXDfxQdCeqEkCorcUUyyYjfg2msbn4Wz9lmioXLAy2u7qkIhncyZi19LZ9B Oqm33/kPmfNGpasJDj5yC2Jw8ddqGNPzhucQ7JI9oXcE4oeI6WiqvPaCAQAfODhfSrpHVs wXBZi/SFfKoliLsvymV1sqOjCuUROY4tMJvCblXmTYnXtpX4PaOhHGLook7/uqf00Vg9ri ZKNIjaxOFsJyI91Nf5ECr/OVEBGlZGeBkZR5WFBscqfCfoDy3KKqQ88+dbP7C2Qa+9j6sX xxJP3j4MQ0x653BXVr/xy8Nc479ZtgT5fmKU7QFDz+UpABrtPIeJ/w3YaFEtPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644267796; a=rsa-sha256; cv=none; b=JJncCdkV3CafzdslgLil3r2MCdGGGbeTKVyXWGoe7WinG27pUQO6Ezp6c1gkodoLanp68T NpixmXcUcFBBkGGWidJYVI7+pfuiQNWha5FLLBaGR8+V5KpT75Jp9SDb4v4y1Td5ys+Sqx UNgsyw2saUK6tfH6JwLobZsCegFB9kiAnwQz5Lzhwtn2E39324aqdqp5UEUPzdrGOwtnbL PQdJQX9x7IoKm/m+WNfjri/rQFicr6BVRVYyqbt7y4BbTiWBNmQcaehK9AKF4eaqT0U+DY tiVPiA6kkv9h5vyWjIIad1mlCxTqmmHohLdqC+tsCjLomCiF0/zkEkfGBS7zTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Pdc6o1SJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Pdc6o1SJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D6C3C279C1 X-Spam-Score: -4.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: frBOCmXrOuTy --=-X5UHaOlAHGDtsQzwQmPO Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Zacchaeus Scheffer schreef op ma 07-02-2022 om 14:47 [-0500]: > I was able create the desired=C2=A0effect with the following service > definition: > (simple-service > =C2=A0'my-activation-service > =C2=A0home-activation-service-type > =C2=A0(gexp > =C2=A0 (begin > =C2=A0 =C2=A0 (chdir (ungexp user-home)) > =C2=A0 =C2=A0 (if (not (file-exists? ".ssh")) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 (mkdir ".ssh")) > =C2=A0 =C2=A0 (chmod ".ssh" #o700) > =C2=A0 =C2=A0 (chdir ".ssh") > =C2=A0 =C2=A0 (let ((port (open-output-file "authorized_keys"))) > =C2=A0 =C2=A0 =C2=A0 (display (ungexp authorized-keys) port) > =C2=A0 =C2=A0 =C2=A0 (close-port port)) > =C2=A0 =C2=A0 (chmod "authorized_keys" #o600) > =C2=A0 =C2=A0 (chdir "..")))) > where 'user-home and 'authorized-keys are appropriate strings defined > earlier in the file. >=20 > I believe that resolves the issue, Users shouldn't have to do this (relatively) huge block of relatively inscrutable code though, I believe something along these lines (or a different solution) needs to be implemented in Guix itself somewhere before the issue is resolved. Greetings, Maxime. --=-X5UHaOlAHGDtsQzwQmPO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYgGI4hccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tNBAP9AUydUD7lT40Sbkf2vbmAQ6mMf oRjqyTjzsnyRo50bYwEAtcTtaFTLNID2npaF9/jT4+x2n+6kAR+CY/Sa71LlSAM= =F8/E -----END PGP SIGNATURE----- --=-X5UHaOlAHGDtsQzwQmPO--