From unknown Sat Jun 21 12:24:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41235: guix deploy can't deploy with a user different than root Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 May 2020 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41235 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41235@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158938381122761 (code B ref -1); Wed, 13 May 2020 15:31:01 +0000 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 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-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 unknown Sat Jun 21 12:24:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Brice Waegeneire Subject: bug#41235: closed (Re: bug#41235: guix deploy can't deploy with a user different than root) Message-ID: References: <87y23dseiq.fsf@waegenei.re> <40477dd457d8aaa03ee88b0386d6d933@waegenei.re> X-Gnu-PR-Message: they-closed 41235 X-Gnu-PR-Package: guix Reply-To: 41235@debbugs.gnu.org Date: Tue, 18 Jan 2022 07:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1642490042-13131-1" This is a multi-part message in MIME format... ------------=_1642490042-13131-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41235: guix deploy can't deploy with a user different than root which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 41235@debbugs.gnu.org. --=20 41235: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41235 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642490042-13131-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1642490042-13131-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1642490042-13131-1--