From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uFDqIDA8/GFcKwAAgWs5BA (envelope-from ) for ; Thu, 03 Feb 2022 21:33:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IF2IHTA8/GFUuwAAauVa8A (envelope-from ) for ; Thu, 03 Feb 2022 21:33:52 +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 DE7E24348C for ; Thu, 3 Feb 2022 21:33:51 +0100 (CET) Received: from localhost ([::1]:34420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFind-0004hP-OK for larch@yhetil.org; Thu, 03 Feb 2022 15:33:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFiEF-0004BV-0f for bug-guix@gnu.org; Thu, 03 Feb 2022 14:57:15 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFiE2-0003L8-HP for bug-guix@gnu.org; Thu, 03 Feb 2022 14:57:14 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFiE2-0000YW-IW for bug-guix@gnu.org; Thu, 03 Feb 2022 14:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53752: guix home symlink permissions Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 03 Feb 2022 19:57:02 +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 Cc: 53752@debbugs.gnu.org Received: via spool by 53752-submit@debbugs.gnu.org id=B53752.16439182132122 (code B ref 53752); Thu, 03 Feb 2022 19:57:02 +0000 Received: (at 53752) by debbugs.gnu.org; 3 Feb 2022 19:56:53 +0000 Received: from localhost ([127.0.0.1]:57964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFiDt-0000Y8-77 for submit@debbugs.gnu.org; Thu, 03 Feb 2022 14:56:53 -0500 Received: from mx.kolabnow.com ([212.103.80.154]:57500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFiDp-0000Xu-FS for 53752@debbugs.gnu.org; Thu, 03 Feb 2022 14:56:51 -0500 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id B7EFE9D5; Thu, 3 Feb 2022 20:56:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1643918194; x=1645732595; bh=uOpjtIuCQve47k8Hz5E+1PASSAq08wh5WYK Rw0xeH0M=; b=ZBVBd4OM/bTZ7KaxRn18kcwAB/8d296qYuxYQA/LjbvozKrhleP uq7xsd+BZq8CBzavKKYKzaEkyV/NhqSGasPnAN9ZTdhjkpUqvixuOot76v0NHHyP /4Ti1mbawkduR3iVSq4YYcd2tkEOLZSJiMHBVwAVyVN0LlT6XSDF1Ec2fMFGU4lB 4B0XYefMZx84EdKex/l7oa3IqvwWtYBwghKZl07tgGlzGfCf3baJZpIcgyipO1OU /Mbiqi6ZPvc4DmGxF85Uuk+cBoqWEy1qUedXzpEALcDrPjRdjH4kv3YQpj7FNCfX jcnqz+86cHLzQotXggVxrxRtY257dobY0FaTtu33oG5Z5yl+42EnSBvjnMZ0prl6 jx72WsJCTkuILdehjksqVL2Xo3VG1d8ZQf62mr6g7Y7zOLXAZ4rM8ut8qI3Q4Euu /VY343PLTbzgRl7T+M12avN7oEu3xigsyuDBh/OXT8p7oviaim2Uf1lSenFou5rL sYmIfdTnx1GnN1p7utbfkn0F2tmoyJykDjLYjPYHaN5Pr8KDttb2uXcvyFycI3YT dLKTNuCEGGfOziZaMJAv1E3Yubn3VBZUOvSQ8nuFrD51cfVGswCoxMCXxpGlaQX5 dXSg4h4rFrEkuzLJd1iOyF78cNSv32ezGjSTfYHs1RMatV+nXLNxIW0g= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6GbhHU2CvXes; Thu, 3 Feb 2022 20:56:34 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 82D44499; Thu, 3 Feb 2022 20:56:22 +0100 (CET) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id A66BC8D0; Thu, 3 Feb 2022 20:56:11 +0100 (CET) Date: Thu, 03 Feb 2022 16:56:06 -0300 Message-ID: <1737102.PxY0oXxzeL@popigai> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Thiago Jung Bauermann From: Thiago Jung Bauermann via Bug reports for GNU 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=1643920432; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=uOpjtIuCQve47k8Hz5E+1PASSAq08wh5WYKRw0xeH0M=; b=eqaIrhjnM4PVaNk6FqClg9+C2wwYsDr6zZiS+dedvGDXSqyXZ8eULyTH+Ya1e/IBBgThQu BWTu0Ce3dTpeTAiAE9KYZ/geJsxWcCgtB1Zr6qfTClupk5LI5v49NheElBcQf/X6OxSEOi 7kpGYsrJ2yu3M6lxmsiI+A6MtsPOm4mvtsCKsYMxtvoThKo6vb4eLhBCiOk+P9XLsEDby2 PSDxnK/wI1UPqS82guROAL116onP+RoLgb7RDB3EQxS+Jyc3atSpXf1ZQNOvUYbHu9qV7T Zj7tcQvcMiqqq7JkXr55vur1su1CN16AdPvt/LE3zFI2t0nj71Ssov51XspoWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643920432; a=rsa-sha256; cv=none; b=hSkFBk0sMKAMReiI8EQou9bWSuKZf8611TaaWfIrsilhSJby+7D7FyGYG20It1PrUzI1Ik 9jhAlsWWAA8BFA4QXRWsvWVQMRu/48Q4U7v5/Swf+TXKIxt2baxZFzlBvz/UKyv8jH423l H5lc0r0lX5gy4A5iyanEoBFVnpqGnNTuTgLjUJvfIn3m/5YrVaQvkX28g9+3KdQ5bhF1ge ntJp0sSmHyKh5FW5ulYeXJh7RZWkHzUWN7JMpwLe2DZ7KhLgP4ltXWnBA1gcIAk/ugPDIu PDyRSQzwPnUQvKGenuWwKooct0DRL2f7bbemz8+i+d2D+x4rzeKQhXgzZR3bSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=ZBVBd4OM; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=ZBVBd4OM; dmarc=pass (policy=none) header.from=gnu.org; 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: DE7E24348C X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0lmKZxXhbq6U Hello Zacchaeus, Em quinta-feira, 3 de fevereiro de 2022, =C3=A0s 15:08:12 -03, Zacchaeus Sc= heffer=20 escreveu: > I finally migrated my home configuration to guix home. However, it seems > guix home creates all symlinks with 777 permissions. This causes > problems with openssh as it will not recognize my > ~/.ssh/authorized_keys. It seems the directories have reasonable > permissions (maybe because they already existed?), but it seems like > someone could in theory edit the symlinks in-place (though I wasn't able > to figure that out). In Linux, symlink permissions are meaningless. From the chmod(1) man page: =E2=80=9Cchmod never changes the permissions of symbolic links; the chmod s= ystem=20 call cannot change their permissions. This is not a problem since the=20 permissions of symbolic links are never used. However, for each symbolic= =20 link listed on the command line, chmod changes the permissions of the=20 pointed-to file. In contrast, chmod ignores symbolic links encountered=20 during recursive directory traversals.=E2=80=9D So AFAIK there=E2=80=99s nothing that guix home can do about that. I don=E2=80=99t know what that implies for OpenSSH and authorized_keys, tho= ugh. =2D-=20 Thanks, Thiago