From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IAohLeXPnWU3RwAAkFu2QA (envelope-from ) for ; Tue, 09 Jan 2024 23:59:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UOL8JeXPnWWBugAAqHPOHw (envelope-from ) for ; Tue, 09 Jan 2024 23:59:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=f0fNVBZY; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704841189; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=01EK0dRIPW2ZyNso8skf+oOYivulLt1HfsnRw9zUcVM=; b=g8yU8/jlnC7vI9hpDyYPICJV5Nx+F4YCDyxZNlGdGHggFpuBphM0HScZ/00Wt7mYoKa1p6 lVkzKQ0++o/UxlGbJeuZjecDUjWj3iV57cIuPRVDJ7xQ01hwX7seO+mf3FJSK/xbourlUA sSS/v/xbv2kSiqClHs59HPhSyhp33242r8SIiv8T9+97wimuAAnGtjLO8vw2IusW1N7iLz skMWQlpSlIYUWeDSinxf8ubgMLhUd83fcXYHHQ2zN3pbrKmpqf38RIZsuYE+ff3w6BiDGU cixzJS8Gbl0H3cSfwWI7tg7MsfdnDY6PGouOwMWUlIe37a7Q14SA6u7y/r5J5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=f0fNVBZY; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704841189; a=rsa-sha256; cv=none; b=o+x8bHbQZUR1vXa0hgvoYv+udEITcMXD4n3pCPwNLXUezyDhLt+WOLtqjpEdt21kFuZ6hu peJHxtXRHHisaG3flvhPermsbHK8vlql7WgM16+L4VGuBRSAmUItsNJn5PUo+vMsaJOVzk tuLtqMofGJNA6w/3r1shVfs8OFDz0HGgS95f8e/jSOOxfGVpmydyg2AdUZWkkXaYPTuLDf 65S3BFSC/3zz2+FxXXkZ1PzmKMFRfWpI1BydZU8GnHgCB+Xs6fD0fSeie9j6IPX9YduFPm FlHUmDlnFuI5v2Vswte7F452HxF6WqAoPsMN6LuFqzL6RhPT2OdO58EutvKLWw== 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 641EA61982 for ; Tue, 9 Jan 2024 23:59:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNL3t-0000Bt-Vv; Tue, 09 Jan 2024 17:59:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNL3s-0000BR-B8; Tue, 09 Jan 2024 17:59:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNL3r-0001or-1L; Tue, 09 Jan 2024 17:59:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=01EK0dRIPW2ZyNso8skf+oOYivulLt1HfsnRw9zUcVM=; b=f0fNVBZYS0vdciGQZVnu Uq3gaysh5GWBIxP/E0AHwnZti65oIEqh1c15bXxZsAQ+D7YV86nqoftAhg+iAAyiSSnYwsPenhJTv /6D7kdb4qbHJAKrSiua6TjZuLOM5AQ25ilkzz1az0IA8RNPFL+1uUN3NwVcgtdj3SNGhXNYbMPhSt ulW2g0MdA4TU43Krf9+JhEIbeUHV95c9ZVX8ztg+jxyc2c4mc6T5j70SOFF/JPB16JlTsoNBazkla Xr9W0CRVCkpMsfEA+F8Y7bYWuQzaXXUvjciX3OvyQ9zAGtk6oq3fCXp/voGxkFaNyone941fXX9U2 GMMYjLfgsI21yw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?S=C3=A9bastien?= Lerique Cc: help-guix@gnu.org, guix-devel@gnu.org Subject: Re: home-syncthing-service-type wants /root paths, yet syncthing can work In-Reply-To: (Tomas Volf's message of "Sat, 6 Jan 2024 13:39:45 +0100") References: <0e58fe8b715dc6f4b0ddef3819a5222d@eauchat.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 20 =?utf-8?Q?Niv=C3=B4se?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Van X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 09 Jan 2024 23:58:44 +0100 Message-ID: <87zfxew1uj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.19 X-Spam-Score: -7.19 X-Migadu-Queue-Id: 641EA61982 X-TUID: GVroRRSK7U11 Hi, Tomas Volf <~@wolfsden.cz> skribis: > Hi, > > On 2024-01-05 15:05:38 +0100, S=C3=A9bastien Lerique wrote: >> Hi Guix! And dear helpers and devs, >> >> I'm running into a weird failure of home-syncthing-service-type. >> >> Running syncthing manually from the terminal works fine (here's an examp= le >> log: ). >> >> So I Ctrl-C syncthing, then add home-syncthing-service-type to my >> home-configuration >> (bottom lines). >> >> After restarting, home-syncthing-service-type fails synchronizing becaus= e it >> bases all user folders inside /root, to which it doesn't have writing >> rights. This happens whether all syncthing configurations in >> `.local/state/syncthing` had been removed in the meantime or not. Here's= a >> log: >> >> Could this be a bug? A mistake in the configuration files? > > After some digging in the source code, I managed to pinpoint the cause. = Your > configuration does not set user nor home, which causes Guix to call (getp= w #f). > That returns the root user. I would say this is a bug. The code probably > should be something like this (untested): > > (or #$home (passwd:dir (getpw (if (and #$home-service? (not #$user)) = (getuid) #$user)))) Agreed. S=C3=A9bastien, could you confirm and send a patch? Thanks, Ludo=E2=80=99.