GNU bug report logs - #29706
GuixSD: Please add the ability to change shells for root

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: BJH2017 <brentonhorne77@HIDDEN>; dated Thu, 14 Dec 2017 08:39:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 29706 <at> debbugs.gnu.org:


Received: (at 29706) by debbugs.gnu.org; 19 Dec 2017 15:26:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 19 10:26:58 2017
Received: from localhost ([127.0.0.1]:42450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRJnG-0003h8-K6
	for submit <at> debbugs.gnu.org; Tue, 19 Dec 2017 10:26:58 -0500
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21134)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1eRJnE-0003gz-AM
 for 29706 <at> debbugs.gnu.org; Tue, 19 Dec 2017 10:26:56 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513697177; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
 l=854; bh=bs5gLTcbycYd365PZDgpPsjrIGDnV6iEJEEBxqjUPP4=;
 b=FxmKT1J+ia80k16eNrlM9Dl5av9A0n9l9HP3Bq2jwLQyjaCtpr+DMc8EQN9e/dEA
 6kqD3bYTELqIxkoyxKk8wk1gc1webn2Qj+NrOWCDx72Zzkef0UM6RIOzRcVqOvRuhvi
 ihkidyw0U/wzXbG22NDRzkvqQL+MWIgSLIVaxdcg=
Received: from localhost (141.80.247.107 [141.80.247.107]) by mx.zohomail.com
 with SMTPS id 1513697177884924.5138802997951;
 Tue, 19 Dec 2017 07:26:17 -0800 (PST)
References: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@HIDDEN>
 <87o9mv7k8o.fsf@HIDDEN>
 <CANb+58KywakA5fYBQPV6sPrdm5EFAFd3dPKRiDeK-rncTYvrPg@HIDDEN>
 <8737466a6r.fsf@HIDDEN>
 <CANb+58KT8HzksVpktAPtzKkv9yKz7mfdmnEpXrGUMzWZ-q7TiQ@HIDDEN>
User-agent: mu4e 1.0-alpha3; emacs 25.3.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: BJH2017 <brentonhorne77@HIDDEN>
Subject: Re: bug#29706: GuixSD: Please add the ability to change shells for
 root
In-reply-to: <CANb+58KT8HzksVpktAPtzKkv9yKz7mfdmnEpXrGUMzWZ-q7TiQ@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Tue, 19 Dec 2017 16:26:14 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-ID: <87vah2kacp.fsf@HIDDEN>
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 29706
Cc: 29706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)


Hi,

>   (users (cons
>               (user-account
>                 (name "root")
>                 (uid 0)
>                 (group "root")
>                 (supplementary-groups '("home-directory"))
>                 (home-directory "/root")
>                 (shell (file-append zsh "/bin/zsh")))
>                (user-account
>                 (name "fusion809")
>                 (comment "Brenton Horne")
>                 (group "users")
>                 (supplementary-groups '("wheel" "netdev"
>                                         "audio" "video"))
>                 (home-directory "/home/fusion809")
> (shell "/run/current-system/profile/bin/zsh"))
>                %base-user-accounts))
>
> guessing the problem here is that I have two user-account fields?

Yes, =E2=80=9Ccons=E2=80=9D takes a single item (its first argument) and pr=
epends it to a
list (its second argument).  You can use =E2=80=9Ccons*=E2=80=9D here, whic=
h prepends
more than one thing to a list.

--=20
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Information forwarded to bug-guix@HIDDEN:
bug#29706; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Dec 2017 15:02:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 19 10:02:35 2017
Received: from localhost ([127.0.0.1]:42424 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRJPf-00034x-1G
	for submit <at> debbugs.gnu.org; Tue, 19 Dec 2017 10:02:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57704)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brentonhorne77@HIDDEN>) id 1eRJPe-00034l-4C
 for submit <at> debbugs.gnu.org; Tue, 19 Dec 2017 10:02:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <brentonhorne77@HIDDEN>) id 1eRJPT-000697-I5
 for submit <at> debbugs.gnu.org; Tue, 19 Dec 2017 10:02:28 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60063)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <brentonhorne77@HIDDEN>)
 id 1eRJPT-00068J-1x
 for submit <at> debbugs.gnu.org; Tue, 19 Dec 2017 10:02:23 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48294)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <brentonhorne77@HIDDEN>) id 1eRJPK-0001MD-CB
 for bug-guix@HIDDEN; Tue, 19 Dec 2017 10:02:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <brentonhorne77@HIDDEN>) id 1eRJPA-0005yk-PM
 for bug-guix@HIDDEN; Tue, 19 Dec 2017 10:02:14 -0500
Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:44902)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <brentonhorne77@HIDDEN>)
 id 1eRJPA-0005yb-ET
 for bug-guix@HIDDEN; Tue, 19 Dec 2017 10:02:04 -0500
Received: by mail-wm0-x231.google.com with SMTP id t8so4250032wmc.3
 for <bug-guix@HIDDEN>; Tue, 19 Dec 2017 07:02:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=qEA2FBOhA56AIbjsUB83OOibI7asn+JGrn9R5F1p99I=;
 b=KnUrvrrGObW96DVlDb6ymtJY6iz5JGtf283mrmZac7QCAIZn7nxIGxgIGG9jMKsA74
 3t2WgKsRbSNNc+Swp/IM1ArHMXYN6lwjFc/l58oZaQfb7LylgrDrT8ybCD34l6mvADUJ
 iksZUX9o+A8UN0usp364T7wA7DcIimQhU3i7Qq2LCDZ1Tn3e3EJXIGx8mkDv53xHQmbj
 Ao6s18VD6ibAe/XhYn1R7pexoHwEMVeLVM+9eIxVxbuYwGzxLqF4WDxkAtDkxVolpEbD
 68GMtoTsAMe72SUIqRdU9/Oi2X37I6EfK5deOBfs0L8/BnDZwMdg9h0x/BLec+8cH/r/
 x97g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=qEA2FBOhA56AIbjsUB83OOibI7asn+JGrn9R5F1p99I=;
 b=bZknaEGV36boyFN4UMvMvqrSSp48DRFfb01Cq8CbflawwNGqqMjNWyEdz6Q3c0Kno9
 o7NtShakpZup/aFz1YTzuwTb8vZbJ33UMBKHJiSKFn8SM42E2y53XEkg6f9tfRmptbzO
 LoNrQiVBBoOPpekzoyjSJ+HGdV6z/ILSqvl8S4QCMm+yjsyl9D5LakFa4a1CEkVqECeO
 PxtHVBn4P2hAhBvxxUWA/TMvP1H9U12xzeW0kOK12zUFeb6ZH3halyV8SwuarEYLj1w9
 FakGmKRjEszR2oRS1IRk3pONdFXNoQtz6PfCUKh5HqnT2UVVP8QKpG+ZUEQcfaz/0uMO
 f+gQ==
X-Gm-Message-State: AKGB3mKBM2Q9clrz/+tHKJIrp7tmeOyimbCl6YlWJDSaVdlRa542Cits
 In4JcA8quCi2gS89G++I5mMHmYvJBqFT6Z5awxdKgg==
X-Google-Smtp-Source: ACJfBovBS2hJiRQvgrzSGOOYA3KOC2vvTbzn/klzZdzIzRKEu2sWjetWFb30LU5bpGrbOm6LrG/94DefKtIFdmK+UvY=
X-Received: by 10.80.214.74 with SMTP id c10mr910576edj.271.1513695722953;
 Tue, 19 Dec 2017 07:02:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.80.143.166 with HTTP; Tue, 19 Dec 2017 07:02:02 -0800 (PST)
In-Reply-To: <8737466a6r.fsf@HIDDEN>
References: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@HIDDEN>
 <87o9mv7k8o.fsf@HIDDEN>
 <CANb+58KywakA5fYBQPV6sPrdm5EFAFd3dPKRiDeK-rncTYvrPg@HIDDEN>
 <8737466a6r.fsf@HIDDEN>
From: BJH2017 <brentonhorne77@HIDDEN>
Date: Wed, 20 Dec 2017 01:02:02 +1000
Message-ID: <CANb+58KT8HzksVpktAPtzKkv9yKz7mfdmnEpXrGUMzWZ-q7TiQ@HIDDEN>
Subject: Re: bug#29706: GuixSD: Please add the ability to change shells for
 root
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="f403045dc600dd603b0560b2bfe6"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

--f403045dc600dd603b0560b2bfe6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

(thought I had CC'ed the group with my last comment but unfortunately gmail
doesn't do this by default, sorry)

Ya I do have %base-user-accounts in my config file here is what I had for
user accounts in full:

  (users (cons
              (user-account
                (name "root")
                (uid 0)
                (group "root")
                (supplementary-groups '("home-directory"))
                (home-directory "/root")
                (shell (file-append zsh "/bin/zsh")))
               (user-account
                (name "fusion809")
                (comment "Brenton Horne")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/fusion809")
(shell "/run/current-system/profile/bin/zsh"))
               %base-user-accounts))

guessing the problem here is that I have two user-account fields?


On 20 December 2017 at 00:53, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

> Please always keep the list Cc=E2=80=99d.
>
> BJH2017 <brentonhorne77@HIDDEN> skribis:
>
> > No it doesn't, I have this at the moment:
> >
> >                 (name "root")
> >                 (uid 0)
> >                 (group "root")
> >                 (home-directory "/root")
> >                 (shell (file-append zsh "/bin/zsh")))
> >
> > and I get the error:
> >
> > guix system: error: failed to load '/etc/config.scm':
> > /etc/config.scm:35:9: /etc/config.scm:35:9: Wrong number of arguments t=
o
> > #<procedure cons (_ _)>
>
> =E2=80=98cons=E2=80=99 adds an element to a list, so it takes two argumen=
ts:
>
>   (cons account list)
>
> as in:
>
>   (cons (user-account =E2=80=A6) %base-user-accounts)
>
> HTH!
>
> Ludo=E2=80=99.
>

--f403045dc600dd603b0560b2bfe6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">(thought I had CC&#39;ed the group with my last comment bu=
t unfortunately gmail doesn&#39;t do this by default, sorry)<div><br></div>=
<div>Ya I do have %base-user-accounts in my config file here is what I had =
for user accounts in full:</div><div><br></div><div><div>=C2=A0 (users (con=
s=C2=A0</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (user-ac=
count</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (na=
me &quot;root&quot;)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 (uid 0)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 (group &quot;root&quot;)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (supplementary-groups &#39;(&quot;home-dire=
ctory&quot;))</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 (home-directory &quot;/root&quot;)</div><div>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (shell (file-append zsh &quot;/bin/zsh&q=
uot;)))</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(u=
ser-account</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 (name &quot;fusion809&quot;)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 (comment &quot;Brenton Horne&quot;)</div><div>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (group &quot;users&quo=
t;)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (supp=
lementary-groups &#39;(&quot;wheel&quot; &quot;netdev&quot;</div><div>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;audio&=
quot; &quot;video&quot;))</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 (home-directory &quot;/home/fusion809&quot;)</div><div><s=
pan class=3D"gmail-Apple-tab-span" style=3D"white-space:pre">		</span>(shel=
l &quot;/run/current-system/profile/bin/zsh&quot;))</div><div>=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%base-user-accounts))</div></div>=
<div><br></div><div>guessing the problem here is that I have two user-accou=
nt fields?</div><div><br></div></div><div class=3D"gmail_extra"><br><div cl=
ass=3D"gmail_quote">On 20 December 2017 at 00:53, Ludovic Court=C3=A8s <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:ludo@HIDDEN" target=3D"_blank">ludo@gn=
u.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please always=
 keep the list Cc=E2=80=99d.<br>
<br>
BJH2017 &lt;<a href=3D"mailto:brentonhorne77@HIDDEN">brentonhorne77@gmai=
l.com</a>&gt; skribis:<br>
<span class=3D""><br>
&gt; No it doesn&#39;t, I have this at the moment:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(name &qu=
ot;root&quot;)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(uid 0)<b=
r>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(group &q=
uot;root&quot;)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(home-dir=
ectory &quot;/root&quot;)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(shell (f=
ile-append zsh &quot;/bin/zsh&quot;)))<br>
&gt;<br>
&gt; and I get the error:<br>
&gt;<br>
&gt; guix system: error: failed to load &#39;/etc/config.scm&#39;:<br>
&gt; /etc/config.scm:35:9: /etc/config.scm:35:9: Wrong number of arguments =
to<br>
&gt; #&lt;procedure cons (_ _)&gt;<br>
<br>
</span>=E2=80=98cons=E2=80=99 adds an element to a list, so it takes two ar=
guments:<br>
<br>
=C2=A0 (cons account list)<br>
<br>
as in:<br>
<br>
=C2=A0 (cons (user-account =E2=80=A6) %base-user-accounts)<br>
<br>
HTH!<br>
<br>
Ludo=E2=80=99.<br>
</blockquote></div><br></div>

--f403045dc600dd603b0560b2bfe6--




Information forwarded to bug-guix@HIDDEN:
bug#29706; Package guix. Full text available.

Message received at 29706 <at> debbugs.gnu.org:


Received: (at 29706) by debbugs.gnu.org; 19 Dec 2017 14:53:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 19 09:53:37 2017
Received: from localhost ([127.0.0.1]:41450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eRJGz-0002bZ-3i
	for submit <at> debbugs.gnu.org; Tue, 19 Dec 2017 09:53:37 -0500
Received: from hera.aquilenet.fr ([141.255.128.1]:41890)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1eRJGx-0002bR-V6
 for 29706 <at> debbugs.gnu.org; Tue, 19 Dec 2017 09:53:36 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 654EF10543;
 Tue, 19 Dec 2017 15:53:38 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id Am24jKl71NXi; Tue, 19 Dec 2017 15:53:37 +0100 (CET)
Received: from ribbon (nat-eduroam-36-gw-01-bso.bordeaux.inria.fr
 [194.199.1.36])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id B6178F408;
 Tue, 19 Dec 2017 15:53:37 +0100 (CET)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: BJH2017 <brentonhorne77@HIDDEN>
Subject: Re: bug#29706: GuixSD: Please add the ability to change shells for
 root
References: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@HIDDEN>
 <87o9mv7k8o.fsf@HIDDEN>
 <CANb+58KywakA5fYBQPV6sPrdm5EFAFd3dPKRiDeK-rncTYvrPg@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 29 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?=
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, 19 Dec 2017 15:53:32 +0100
In-Reply-To: <CANb+58KywakA5fYBQPV6sPrdm5EFAFd3dPKRiDeK-rncTYvrPg@HIDDEN>
 (BJH's message of "Tue, 19 Dec 2017 23:02:51 +1000")
Message-ID: <8737466a6r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 29706
Cc: 29706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Please always keep the list Cc=E2=80=99d.

BJH2017 <brentonhorne77@HIDDEN> skribis:

> No it doesn't, I have this at the moment:
>
>                 (name "root")
>                 (uid 0)
>                 (group "root")
>                 (home-directory "/root")
>                 (shell (file-append zsh "/bin/zsh")))
>
> and I get the error:
>
> guix system: error: failed to load '/etc/config.scm':
> /etc/config.scm:35:9: /etc/config.scm:35:9: Wrong number of arguments to
> #<procedure cons (_ _)>

=E2=80=98cons=E2=80=99 adds an element to a list, so it takes two arguments:

  (cons account list)

as in:

  (cons (user-account =E2=80=A6) %base-user-accounts)

HTH!

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#29706; Package guix. Full text available.

Message received at 29706 <at> debbugs.gnu.org:


Received: (at 29706) by debbugs.gnu.org; 18 Dec 2017 22:18:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 18 17:18:55 2017
Received: from localhost ([127.0.0.1]:40922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eR3kN-0006gq-MA
	for submit <at> debbugs.gnu.org; Mon, 18 Dec 2017 17:18:55 -0500
Received: from hera.aquilenet.fr ([141.255.128.1]:39263)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1eR3kM-0006gh-BO
 for 29706 <at> debbugs.gnu.org; Mon, 18 Dec 2017 17:18:54 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 7E408F408;
 Mon, 18 Dec 2017 23:18:57 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id TkfC9PJwYzTO; Mon, 18 Dec 2017 23:18:52 +0100 (CET)
Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 5074CDB1C;
 Mon, 18 Dec 2017 23:18:52 +0100 (CET)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: BJH2017 <brentonhorne77@HIDDEN>
Subject: Re: bug#29706: GuixSD: Please add the ability to change shells for
 root
References: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@HIDDEN>
Date: Mon, 18 Dec 2017 23:18:47 +0100
In-Reply-To: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@HIDDEN>
 (BJH's message of "Thu, 14 Dec 2017 18:38:26 +1000")
Message-ID: <87o9mv7k8o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 29706
Cc: 29706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Hi,

BJH2017 <brentonhorne77@HIDDEN> skribis:

> Using the configuration file /etc/config.scm it is fairly straight forward
> to change shells for a given user account on GuixSD 0.14.0, such as using:
>
> (operating system
>    (users (cons (user-account
>                          (name "user")
>                          ....
>                          (shell "/run/current-system/profile/bin/zsh")))))
>
> , but for root this is impossible. Is it possible this feature could be
> added?

I just realized it=E2=80=99s actually possible: if you add an account with
UID=C2=A00, then that account is the root account.

So you can write:

  (operating-system
    ;; =E2=80=A6
    (users (cons (user-account
                   (name "this-can-be-root-or-something-else")
                   (uid 0)
                   ;; =E2=80=A6
                   (shell (file-append zsh "/bin/zsh")))
                 =E2=80=A6)))

=E2=80=A6 and you get a root account with the chosen name and shell.

Does it work for you?

I=E2=80=99ve clarified the situation:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D45f6211730157c50a=
de4dbf770e60871f1067ad6

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#29706; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Dec 2017 08:38:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 14 03:38:40 2017
Received: from localhost ([127.0.0.1]:32973 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ePP2M-0002ve-EU
	for submit <at> debbugs.gnu.org; Thu, 14 Dec 2017 03:38:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35908)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brentonhorne77@HIDDEN>) id 1ePP2K-0002vP-Fn
 for submit <at> debbugs.gnu.org; Thu, 14 Dec 2017 03:38:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <brentonhorne77@HIDDEN>) id 1ePP2E-0000ms-IG
 for submit <at> debbugs.gnu.org; Thu, 14 Dec 2017 03:38:31 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_05,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60000)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <brentonhorne77@HIDDEN>)
 id 1ePP2E-0000mc-EL
 for submit <at> debbugs.gnu.org; Thu, 14 Dec 2017 03:38:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55095)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <brentonhorne77@HIDDEN>) id 1ePP2D-0004F4-FH
 for bug-guix@HIDDEN; Thu, 14 Dec 2017 03:38:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <brentonhorne77@HIDDEN>) id 1ePP2C-0000k2-Rr
 for bug-guix@HIDDEN; Thu, 14 Dec 2017 03:38:29 -0500
Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:33205)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <brentonhorne77@HIDDEN>)
 id 1ePP2C-0000hS-Kg
 for bug-guix@HIDDEN; Thu, 14 Dec 2017 03:38:28 -0500
Received: by mail-wm0-x22e.google.com with SMTP id g130so25270073wme.0
 for <bug-guix@HIDDEN>; Thu, 14 Dec 2017 00:38:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=5B40LwPF75pzi4anE3kWISiSLjoQu5zeSuWMG7gol2k=;
 b=HqLpLh60jkoBYf4Ni8pNVD0KYP+f5Lmzd03UYsGvS03xlck625ykuo+jWuXvcgG16i
 YNW/YgU0RYbmy0I01EYPA/sZMOigDNyqN/lIdd55nQ0oxYp07sp7L16cot6BrdLe1Xno
 i2b/ywPuGemKrUmaIR4rQSJIMLIzppA803QZ1ga07WyNd1vfEt7rsu3JULqanD1Ha7Rr
 ExvtJ15e4vUhm75YppjUNWRrdN4i7LZ5SBiOmbWh8eVDTK1s3a1UXfdV6sYpg2Zmq1ph
 rivFx25ACJPLhK4IoCPkDuBardt+XW7XNnTKpXI8qdWnCacAUC4vfRyL8OqJeMseJJOB
 QpUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=5B40LwPF75pzi4anE3kWISiSLjoQu5zeSuWMG7gol2k=;
 b=ekMlave+G0StqZmfU+N272S9UM9v0P0Syje3FFhr2Dp4TbsPNJ/l7Y3SBEJ0YBZ8P0
 4ktY8+C1jbjPXYCpByxf/2Yx3H5pPQOfGjDyT6cahIMdBCoX0Xqv9vfQBavp3TPKBdYa
 FiyVg3pdtsgMLDFwr0XJCZhiqrWax81fX5/W2nb7Rrf3xFgjhdhksjyQjsfpSELEU5Q9
 /3t3kAVk8/X6vipz8+H3YfkztFtMuBdH08IHpm2jExN4l1zHyLv+M/KLkkxoQ7XDltQy
 q6sAMrQXaVhjwu0YEtS0W2eCUJzHV7w5dAS+CznVBNvGye0w+kiHucbwmWzRcKBmxrtm
 rAkw==
X-Gm-Message-State: AKGB3mKHSn4w8266MyX1Ou+5Kb3Kn1L9eQxmdYJ+F5jq8Tt0aXndIT8z
 IFUUV6ZKDLYiFloYc7v97M6d3LtcrILeDyscUu4=
X-Google-Smtp-Source: ACJfBovLwVY+L/f9vLzCa/NRMjCqViI2u8t94cO8sQghIKY/eyBD5djtPxRgIHu2HUyPca0IDOTXJd/v0JhIFFPSQLU=
X-Received: by 10.80.195.204 with SMTP id i12mr11072026edf.272.1513240706871; 
 Thu, 14 Dec 2017 00:38:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.80.143.166 with HTTP; Thu, 14 Dec 2017 00:38:26 -0800 (PST)
From: BJH2017 <brentonhorne77@HIDDEN>
Date: Thu, 14 Dec 2017 18:38:26 +1000
Message-ID: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@HIDDEN>
Subject: GuixSD: Please add the ability to change shells for root
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="94eb2c1ccc62caf7a6056048ce9b"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

--94eb2c1ccc62caf7a6056048ce9b
Content-Type: text/plain; charset="UTF-8"

Using the configuration file /etc/config.scm it is fairly straight forward
to change shells for a given user account on GuixSD 0.14.0, such as using:

(operating system
   (users (cons (user-account
                         (name "user")
                         ....
                         (shell "/run/current-system/profile/bin/zsh")))))

, but for root this is impossible. Is it possible this feature could be
added?

--94eb2c1ccc62caf7a6056048ce9b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: base64

PGRpdiBkaXI9Imx0ciI+PGRpdj48ZGl2PjxkaXY+VXNpbmcgdGhlIGNvbmZpZ3VyYXRpb24gZmls
ZSAvZXRjL2NvbmZpZy5zY20gaXQgaXMgZmFpcmx5IHN0cmFpZ2h0IGZvcndhcmQgdG8gY2hhbmdl
IHNoZWxscyBmb3IgYSBnaXZlbiB1c2VyIGFjY291bnQgb24gR3VpeFNEIDAuMTQuMCwgc3VjaCBh
cyB1c2luZzo8YnI+PGJyPjwvZGl2PihvcGVyYXRpbmcgc3lzdGVtPGJyPjwvZGl2PsKgwqAgKHVz
ZXJzIChjb25zICh1c2VyLWFjY291bnQ8L2Rpdj48ZGl2PsKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg
IMKgIMKgIMKgIMKgwqAgKG5hbWUgJnF1b3Q7dXNlciZxdW90Oyk8L2Rpdj48ZGl2PsKgIMKgIMKg
IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgwqAgLi4uLiDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqAgPGJyPjwvZGl2PjxkaXY+wqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChzaGVsbCAmcXVvdDsvcnVuL2N1cnJlbnQtc3lz
dGVtL3Byb2ZpbGUvYmluL3pzaCZxdW90OykpKSkpPGJyPjwvZGl2Pjxicj48ZGl2PjxkaXY+PGRp
dj4sIGJ1dCBmb3Igcm9vdCB0aGlzIGlzIGltcG9zc2libGUuIElzIGl0IHBvc3NpYmxlIHRoaXMg
ZmVhdHVyZSBjb3VsZCBiZSBhZGRlZD88L2Rpdj48L2Rpdj48L2Rpdj48L2Rpdj4NCg==
--94eb2c1ccc62caf7a6056048ce9b--




Acknowledgement sent to BJH2017 <brentonhorne77@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#29706; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 19 Dec 2017 15:30:02 UTC

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