From unknown Wed Jun 18 23:08:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41235 <41235@debbugs.gnu.org> To: bug#41235 <41235@debbugs.gnu.org> Subject: Status: guix deploy can't deploy with a user different than root Reply-To: bug#41235 <41235@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:08:39 +0000 retitle 41235 guix deploy can't deploy with a user different than root reassign 41235 guix submitter 41235 Brice Waegeneire severity 41235 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 13 11:30:11 2020 Received: (at submit) by debbugs.gnu.org; 13 May 2020 15:30:11 +0000 Received: from localhost ([127.0.0.1]:59108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYtKl-0005v3-8q for submit@debbugs.gnu.org; Wed, 13 May 2020 11:30:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:39396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYtKg-0005uq-Dm for submit@debbugs.gnu.org; Wed, 13 May 2020 11:30:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYtKg-0001sK-6F for bug-guix@gnu.org; Wed, 13 May 2020 11:30:06 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:58363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYtKd-0001ud-Ne for bug-guix@gnu.org; Wed, 13 May 2020 11:30:05 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay5-d.mail.gandi.net (Postfix) with ESMTPA id A52AF1C000C for ; Wed, 13 May 2020 15:29:58 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 13 May 2020 15:29:58 +0000 From: Brice Waegeneire To: bug-guix@gnu.org Subject: guix deploy can't deploy with a user different than root Message-ID: <40477dd457d8aaa03ee88b0386d6d933@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 Received-SPF: pass client-ip=217.70.183.197; envelope-from=brice@waegenei.re; helo=relay5-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 11:29:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.6 (-) 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: -2.6 (--) Hello, When trying to reproduce another “guix deploy” bug for a future bug report I stumbled upon this one: it's not possible to deploy as a user (machine-ssh-configuration-user) different than “root“, even with a properly configured sudoers file[0]. Deploying with root works when ssh is configured with “PermitRootLogin yes”. Following is the backtrace: --8<---------------cut here---------------start------------->8--- $ guix deploy -Lmodules systems/hystou-p04.scm guix deploy: warning: failed to load '(config workstation)': no code for module (gnu services lightdm) The following 1 machine will be deployed: abricot guix deploy: deploying to abricot... sending 0 store items (0 MiB) to '192.168.10.10'... Backtrace: In guix/ui.scm: 1936:12 19 (run-guix-command _ . _) In guix/status.scm: 776:4 18 (call-with-status-report _ _) In ice-9/boot-9.scm: 1736:10 17 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 630:22 16 (thunk) 1295:8 15 (call-with-build-handler _ _) 1295:8 14 (call-with-build-handler # …) In guix/scripts/deploy.scm: 155:12 13 (_) In guix/store.scm: 1336:2 12 (map/accumulate-builds # …) In srfi/srfi-1.scm: 586:17 11 (map1 (#< things: (("/gnu/store/x32cnfkd50…>)) In guix/store.scm: 1295:8 10 (call-with-build-handler # …) In guix/scripts/deploy.scm: 123:2 9 (_ _) In ice-9/boot-9.scm: 1736:10 8 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/deploy.scm: 133:4 7 (_) In guix/store.scm: 2015:24 6 (run-with-store # …) In gnu/machine/ssh.scm: 416:2 5 (_ _) 316:2 4 (_ _) In guix/remote.scm: 138:10 3 (_ _) In guix/store.scm: 1886:38 2 (_ #) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1667:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1667:16: In procedure raise-exception: ERROR: 1. &store-protocol-error: message: "unknown error while sending files over SSH" status: 44 --8<---------------cut here---------------end--------------->8--- [0]: https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-deploy.html#Invoking-guix-deploy - Brice From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 18 02:13:12 2022 Received: (at 41235-close) by debbugs.gnu.org; 18 Jan 2022 07:13:12 +0000 Received: from localhost ([127.0.0.1]:48685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ig4-0003Nx-D8 for submit@debbugs.gnu.org; Tue, 18 Jan 2022 02:13:12 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ig2-0003Nh-Vj for 41235-close@debbugs.gnu.org; Tue, 18 Jan 2022 02:13:11 -0500 Received: (Authenticated sender: brice@waegenei.re) by mail.gandi.net (Postfix) with ESMTPSA id B0F2320008 for <41235-close@debbugs.gnu.org>; Tue, 18 Jan 2022 07:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waegenei.re; s=gm1; t=1642489984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G+dChjFWEII+um+nt4CwxV6/AmGp1mNymduAZ60d3Eg=; b=Trr9snK5T3/iKa28nxppjY9fURDLVWlgGty+uCsqd+/xzma7s56JdstHfkOtP1EICnzmUN D0qzq70Iqjw030hYwsaXaDHkmZY5FBuaoFKm/K7XzuF2h3nKkLJgAt3yuKXzew9H9T15k2 1MIrDrZzJk1d8qXASEDIM5BMTZ1cKr7q/Y0kHKJTqNxuO/4ZaqglF6A92VJxC4EBAxP37R TWPb8lrUgAf+MFDnNbGberoAKZke3t7usaBjt7uGayYv66Cr9Xnwdljn5IbFrzGjyoopWV 9h/TByOOZL+mdQ7mDFa7lIo8+nNNeWPKmopbZatMosHVDlR32g/MVH9X6IfqpA== From: Brice Waegeneire To: 41235-close@debbugs.gnu.org Subject: Re: bug#41235: guix deploy can't deploy with a user different than root References: <40477dd457d8aaa03ee88b0386d6d933@waegenei.re> Date: Tue, 18 Jan 2022 08:13:01 +0100 In-Reply-To: <40477dd457d8aaa03ee88b0386d6d933@waegenei.re> (Brice Waegeneire's message of "Wed, 13 May 2020 15:29:58 +0000") Message-ID: <87y23dseiq.fsf@waegenei.re> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41235-close 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.7 (-) Hello Guix, Brice Waegeneire writes: > When trying to reproduce another =E2=80=9Cguix deploy=E2=80=9D bug for a = future bug=20 > report > I stumbled upon this one: it's not possible to deploy as a user > (machine-ssh-configuration-user) different than =E2=80=9Croot=E2=80=9C, e= ven with a > properly configured sudoers file[0]. Deploying with root works when ssh=20 > is > configured with =E2=80=9CPermitRootLogin yes=E2=80=9D. [...] This isn't the case anymore. I can now use "guix deploy" with a user having passwordless sudo right, as documented in the manual. Cheers, - Brice From unknown Wed Jun 18 23:08:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Feb 2022 12:24:08 +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