GNU bug report logs - #41235
guix deploy can't deploy with a user different than root

Previous Next

Package: guix;

Reported by: Brice Waegeneire <brice <at> waegenei.re>

Date: Wed, 13 May 2020 15:31:01 UTC

Severity: normal

Done: Brice Waegeneire <brice <at> waegenei.re>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41235 in the body.
You can then email your comments to 41235 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41235; Package guix. (Wed, 13 May 2020 15:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brice Waegeneire <brice <at> waegenei.re>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 13 May 2020 15:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: bug-guix <at> gnu.org
Subject: guix deploy can't deploy with a user different than root
Date: Wed, 13 May 2020 15:29:58 +0000
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 #<procedure 7fe8ee3bc120 at g…> …)
In guix/scripts/deploy.scm:
   155:12 13 (_)
In guix/store.scm:
   1336:2 12 (map/accumulate-builds #<store-connection 256.99 7fe8e…> …)
In srfi/srfi-1.scm:
   586:17 11 (map1 (#<<unresolved> things: (("/gnu/store/x32cnfkd50…>))
In guix/store.scm:
   1295:8 10 (call-with-build-handler #<procedure build-accumulator…> …)
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 #<store-connection 256.99 7fe8ee3a75f0> …)
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 (_ #<store-connection 256.99 7fe8ee7dba50>)
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




Reply sent to Brice Waegeneire <brice <at> waegenei.re>:
You have taken responsibility. (Tue, 18 Jan 2022 07:14:02 GMT) Full text and rfc822 format available.

Notification sent to Brice Waegeneire <brice <at> waegenei.re>:
bug acknowledged by developer. (Tue, 18 Jan 2022 07:14:02 GMT) Full text and rfc822 format available.

Message #10 received at 41235-close <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: 41235-close <at> debbugs.gnu.org
Subject: Re: bug#41235: guix deploy can't deploy with a user different than
 root
Date: Tue, 18 Jan 2022 08:13:01 +0100
Hello Guix,

Brice Waegeneire <brice <at> waegenei.re> writes:

> 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”.

[...]

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Feb 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.