From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 11 10:58:03 2020 Received: (at submit) by debbugs.gnu.org; 11 Jun 2020 14:58:03 +0000 Received: from localhost ([127.0.0.1]:37669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOeZ-0004kJ-6N for submit@debbugs.gnu.org; Thu, 11 Jun 2020 10:58:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:33680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOeX-0004jy-Ux for submit@debbugs.gnu.org; Thu, 11 Jun 2020 10:58:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjOeX-0001gF-Ka for bug-guix@gnu.org; Thu, 11 Jun 2020 10:58:01 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:38379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjOeW-0006pL-2Y for bug-guix@gnu.org; Thu, 11 Jun 2020 10:58:01 -0400 Received: from bababa (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 32AA6100006 for ; Thu, 11 Jun 2020 14:57:53 +0000 (UTC) From: Pierre Neidhardt To: bug-guix@gnu.org Subject: rsync service broken (uid, "files" module) Date: Thu, 11 Jun 2020 16:57:53 +0200 Message-ID: <87r1ul3b0u.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.178.231; envelope-from=mail@ambrevar.xyz; helo=relay11.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/11 10:57:54 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=1, FROM_SUSPICIOUS_NTLD_FP=1, PDS_OTHER_BAD_TLD=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: A few things are not working with the Guix rsync service: 1. A "files" module is created by default: --88--- # Generated by 'rsync-service'. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ambrevar.xyz] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: -0.1 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable A few things are not working with the Guix rsync service: 1. A "files" module is created by default: =2D-8<---------------cut here---------------start------------->8--- # Generated by 'rsync-service'. pid file =3D /var/run/rsyncd/rsyncd.pid lock file =3D /var/run/rsyncd/rsyncd.lock log file =3D /var/log/rsyncd.log port =3D 873 use chroot =3D true uid =3D rsyncd gid =3D rsyncd [files] path =3D /srv/rsyncd comment =3D Rsync share read only =3D false timeout =3D 300 =2D-8<---------------cut here---------------end--------------->8--- But rsync-configuration does not allow the user to specify another module name, nor to add a module. This is limiting. Furthermore, the default module name is not documented, so one has to guess that the client must invoke =2D-8<---------------cut here---------------start------------->8--- rsync ... $HOST/files ... # The "files" here matters! =2D-8<---------------cut here---------------end--------------->8--- 2. The `uid' option does not work. With the following configuration =2D-8<---------------cut here---------------start------------->8--- (service rsync-service-type (rsync-configuration (uid "ambrevar") (gid "users") (share-path "/whatever") (read-only? #t))) =2D-8<---------------cut here---------------end--------------->8--- I get this on guix reconfigure: =2D-8<---------------cut here---------------start------------->8--- building /gnu/store/lvkplmcxr785x56022hm8d88x0fbpd0m-switch-to-system.scm.d= rv... making '/gnu/store/v01y64gg1wbvg5jk3xgsci04rgvfy6sv-system' the current sys= tem... setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/5pwh48vkd4yhjc29iq6mxnh7jgd4nnmh-etc... Backtrace: 1 (primitive-load "/home/ambrevar/.config/guix/current/bin/guix") In guix/ui.scm: 1945:12 0 (run-guix-command _ . _) guix/ui.scm:1945:12: In procedure run-guix-command: In procedure getpw: entry not found =2D-8<---------------cut here---------------end--------------->8--- Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl7iRnEACgkQm9z0l6S7 zH+y4Af/U1mOGr7XZhgJ2ARkVa/qENyOqfBMzGuJloNmv5YGIQb0WXdjSxnRQgky R3bOlJm/qCtqES2R1JDRlv8vOyu/uVrHDfq59gxTZOFnDJhcnJ4FHolVI3ybfyhD NFQc6qcUe3k6SlYR4D4IMmYC+kCjs1VHx/Eg5kEilM+PeNcpgyU/6KnMy+X9Q9Au rtfBCo0Y7qOl52uXwJLCQOBTJGrKnDTDSyUgOSV5T8HyuEH6sHsH6tbXfS3oArZK g+eouRe5ff68XtUIfpuG5tsiA7iZ6tkB0A4aWXshcen9Mc7pySMGm7ZTOFEr3WkK DDrmg9NmnbKpye8H1s7XdPMkP0XUJA== =4BkF -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 30 09:31:37 2023 Received: (at 41806) by debbugs.gnu.org; 30 Jul 2023 13:31:37 +0000 Received: from localhost ([127.0.0.1]:49552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQ6WG-0000qC-UY for submit@debbugs.gnu.org; Sun, 30 Jul 2023 09:31:37 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:61452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQ6WF-0000q0-Q6 for 41806@debbugs.gnu.org; Sun, 30 Jul 2023 09:31:36 -0400 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-403cb525738so27419551cf.2 for <41806@debbugs.gnu.org>; Sun, 30 Jul 2023 06:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690723890; x=1691328690; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4XY9lv5xjvtC6TPtsXYbhvYouAYkYFT29vTY3fQEJgo=; b=KA7sBojYQvy9Y//SKda705jVP81p4XqrcMNPnnTghpvMuLFlJZ7oVL0+wcC4n7vMBI mCqPS3nHmCRYB9gEzwnI7SpvBpQLuV5AR/0UH/wZm8j11YJ0WBaDO5zBQR1IYheiAdWg kaa5kSgxlz6VxUNdag+eOL5tVY3cCf7X5pW6mVPoQpBwXb2AnNHZ5LZT8OCXX2tccnfV DuOIbmHF4P7C9sVOvfRyy+JHjDicqozVS7D76MtPqs6+4h5nXDhHRzFaiFVqMEiFEyoY p9CYgdYTvJUZKfZwquCA7hcURnVt04MP5JFZ57CwKT70oCvdzSuiwM996euW4EqO3be6 yagQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690723890; x=1691328690; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4XY9lv5xjvtC6TPtsXYbhvYouAYkYFT29vTY3fQEJgo=; b=aRuJgvkUugAHClPP4iKzNJqRvWdLFrA9B9aZ7+aT0F754B590hIxkfP5Jg1hCJosVx 1avZ4fRCzON7p9VDtVng+uAXgEkmo7YUZGi+d07IErVQhP1FGTAtiQcI6xZF8ca5y0zU juPBm+Moi8+DEkEOBwXncDY8q8vL3nqO7EhIXm7n9IDUbI3SJeNWIaLvwSccAXADpX4T AbxlE8Dmk8d5lx8i9ZupprwQuNros0F/pHrMtH4Z2nwO1yhWn2eCtlaw1HmDz88mUFDc 7FWz5NZgG1ypz0722RDY8zjOSVSZ24AtXSWygiyBhkk7Dsl2i1CU6D18BW8wRcnZADdI b0Gw== X-Gm-Message-State: ABy/qLYxpzayMtRagfINIR452Sf47oD7VkvVEvM4qzDH6a4nAOP4kQcd hnl3yqQ2c24grrVB/B+BpzdKzYp7ULw= X-Google-Smtp-Source: APBJJlEdm6wMglOBwrWSOU6At6dpK40GcSAjwUxMdOdoSkcjwxYV+m41k1pMwx4/Ht4mmxXLgem5UQ== X-Received: by 2002:a05:622a:3c7:b0:403:ecfe:2d88 with SMTP id k7-20020a05622a03c700b00403ecfe2d88mr11014461qtx.61.1690723890072; Sun, 30 Jul 2023 06:31:30 -0700 (PDT) Received: from hurd (dsl-205-236-230-150.b2b2c.ca. [205.236.230.150]) by smtp.gmail.com with ESMTPSA id e21-20020ac85995000000b003fde3d63d22sm2636148qte.69.2023.07.30.06.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 06:31:29 -0700 (PDT) From: Maxim Cournoyer To: Pierre Neidhardt Subject: Re: bug#41806: rsync service broken (uid, "files" module) References: <87r1ul3b0u.fsf@ambrevar.xyz> Date: Sun, 30 Jul 2023 09:31:28 -0400 In-Reply-To: <87r1ul3b0u.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 11 Jun 2020 16:57:53 +0200") Message-ID: <87cz09sez3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 41806 Cc: 41806@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 (-) Hello, Pierre Neidhardt writes: > A few things are not working with the Guix rsync service: > > 1. A "files" module is created by default: > > # Generated by 'rsync-service'. > > pid file = /var/run/rsyncd/rsyncd.pid > lock file = /var/run/rsyncd/rsyncd.lock > log file = /var/log/rsyncd.log > port = 873 > use chroot = true > uid = rsyncd > gid = rsyncd > > [files] > path = /srv/rsyncd > comment = Rsync share > read only = false > timeout = 300 > > > But rsync-configuration does not allow the user to specify another > module name, nor to add a module. This is limiting. I think this was fixed by Ludovic in c9d92409d4d3f587f73c6f48f845a913f7278ad1 ("services: rsync: Allow configuring several rsync "modules".") > Furthermore, the default module name is not documented, so one has to > guess that the client must invoke > > rsync ... $HOST/files ... # The "files" here matters! > > > 2. The `uid' option does not work. With the following configuration > > (service rsync-service-type > (rsync-configuration > (uid "ambrevar") > (gid "users") > (share-path "/whatever") > (read-only? #t))) > > > I get this on guix reconfigure: > > building /gnu/store/lvkplmcxr785x56022hm8d88x0fbpd0m-switch-to-system.scm.drv... > making '/gnu/store/v01y64gg1wbvg5jk3xgsci04rgvfy6sv-system' the current system... > setting up setuid programs in '/run/setuid-programs'... > populating /etc from /gnu/store/5pwh48vkd4yhjc29iq6mxnh7jgd4nnmh-etc... > Backtrace: > 1 (primitive-load "/home/ambrevar/.config/guix/current/bin/guix") > In guix/ui.scm: > 1945:12 0 (run-guix-command _ . _) > > guix/ui.scm:1945:12: In procedure run-guix-command: > In procedure getpw: entry not found Not sure what happened here; did a 'ambrevar' user already exist at the time of reconfiguring? Are you able to reproduce that still? -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 30 09:32:51 2023 Received: (at 41806-done) by debbugs.gnu.org; 30 Jul 2023 13:32:51 +0000 Received: from localhost ([127.0.0.1]:49556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQ6XT-0000rp-CM for submit@debbugs.gnu.org; Sun, 30 Jul 2023 09:32:51 -0400 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:49304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQ6XR-0000rd-S4 for 41806-done@debbugs.gnu.org; Sun, 30 Jul 2023 09:32:50 -0400 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-406b9bcad5dso16415881cf.2 for <41806-done@debbugs.gnu.org>; Sun, 30 Jul 2023 06:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690723964; x=1691328764; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=S3EpFIJUYETK4s/p56jT+zDs5EuaLcejNFK2AuruwpQ=; b=j02Z54ZVEhOLg2++xQOPYrErChm9H7ur8VU3En4f3GQ4VG457o+NFGrWEO2QoOxjKT dZa/qz5kUVllIWtonc3g/MO9/oaufQglV2z0RAc+XghUnn8+RaAXOVNPbCD9KhQNiLXH xW2xFcvKCnsEwBpHUGPP/+hDZfN+CD6EOqq1rFzGmmJoT4tgCg+aboegMpxU3IyLjfdO f5kqgIRak1Rh7auimXTRp4LFBQZ2hMa0QDJXAFOFVk3roJ8RJ1gVI/QAF49SvU9maEau WwSHvYu/FDMGyhXJEqsvSeouZu3CQa3R/mrB/mmMV3SJBgzivUNvCRvYoF4B1okiKwqg scow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690723964; x=1691328764; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S3EpFIJUYETK4s/p56jT+zDs5EuaLcejNFK2AuruwpQ=; b=czod2E7BuaCtgqG2O/oOr0alZgsQJl/AnSr4AVvlNSJhiizuWvyL2nRJZrvV6TqZTu iLFPOzFUeAkoAJnVyp9BkwCFUW8BeDhxBJJwWU73Cw+fxyt5DAqzR6wua79tmsSKGydK xqDXPdN1yxDMJLyug63EJH0YGP5EcvvazygoWMEhWG3zvdnSSdUtwek7d7cs9hNGoLzd 76pERI04aBfGqVwBN0LQHmmIn0zK6oAL5VPxsBNkTiDZkpmquVwyPhO+3rekHWLtwHio aDaR2Ag1++w6i7jKP1SuzOjdN8BHmqP3scvUUmV/s1hrahV6gdxlTaXRZOnWniIymNvY uVBg== X-Gm-Message-State: ABy/qLbwbaDdp4GY6sYxZvXO/Jdr75b5sw39TMILKVRKyBApF4lccan9 uqBZbSLxlHp3Uh8+1aNeBynphL9fWak= X-Google-Smtp-Source: APBJJlFoPYRUSIanBLYLlsEjQcov3JcyAH/tM1OXKqcKwv/rSZf7D68lZqK6rVbLDGuEojnMou8vtw== X-Received: by 2002:a05:622a:d1:b0:403:b4da:6f65 with SMTP id p17-20020a05622a00d100b00403b4da6f65mr6180175qtw.39.1690723964055; Sun, 30 Jul 2023 06:32:44 -0700 (PDT) Received: from hurd (dsl-205-236-230-150.b2b2c.ca. [205.236.230.150]) by smtp.gmail.com with ESMTPSA id a12-20020ac8434c000000b0040522bb33a7sm2716212qtn.54.2023.07.30.06.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 06:32:43 -0700 (PDT) From: Maxim Cournoyer To: Pierre Neidhardt Subject: Re: bug#41806: rsync service broken (uid, "files" module) References: <87r1ul3b0u.fsf@ambrevar.xyz> Date: Sun, 30 Jul 2023 09:32:42 -0400 In-Reply-To: <87r1ul3b0u.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 11 Jun 2020 16:57:53 +0200") Message-ID: <878raxsex1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 41806-done Cc: 41806-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 (-) Hi, I'll close it because it seems the main concern should have been fixed with c9d92409d4d3f587f73c6f48f845a913f7278ad1, but please comment/reopen if you still reproduce an issue. -- Thanks, Maxim From unknown Sat Jun 21 03:25:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 28 Aug 2023 11: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