From mboxrd@z Thu Jan 1 00:00:00 1970 From: BJH2017 Subject: bug#29706: GuixSD: Please add the ability to change shells for root Date: Wed, 20 Dec 2017 01:02:02 +1000 Message-ID: References: <87o9mv7k8o.fsf@gnu.org> <8737466a6r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045dc600dd603b0560b2bfe6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRJQ7-0001g7-1l for bug-guix@gnu.org; Tue, 19 Dec 2017 10:03:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRJQ6-0006XL-12 for bug-guix@gnu.org; Tue, 19 Dec 2017 10:03:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRJQ5-0006XC-TV for bug-guix@gnu.org; Tue, 19 Dec 2017 10:03:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRJQ5-00035o-LI for bug-guix@gnu.org; Tue, 19 Dec 2017 10:03:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRJPK-0001MD-CB for bug-guix@gnu.org; Tue, 19 Dec 2017 10:02:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRJPA-0005yk-PM for bug-guix@gnu.org; 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 ) id 1eRJPA-0005yb-ET for bug-guix@gnu.org; Tue, 19 Dec 2017 10:02:04 -0500 Received: by mail-wm0-x231.google.com with SMTP id t8so4250032wmc.3 for ; Tue, 19 Dec 2017 07:02:04 -0800 (PST) In-Reply-To: <8737466a6r.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 29706@debbugs.gnu.org --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 wrote: > Please always keep the list Cc=E2=80=99d. > > BJH2017 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 > > # > > =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
(thought I had CC'ed the group with my last comment bu= t 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:

=C2=A0 (users (con= s=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (user-ac= count
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (na= me "root")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (uid 0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (group "root")
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (supplementary-groups '("home-dire= ctory"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (home-directory "/root")
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (shell (file-append zsh "/bin/zsh&q= uot;)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(u= ser-account
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (name "fusion809")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (comment "Brenton Horne")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (group "users&quo= t;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (supp= lementary-groups '("wheel" "netdev"
=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 "audio&= quot; "video"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (home-directory "/home/fusion809")
(shel= l "/run/current-system/profile/bin/zsh"))
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%base-user-accounts))
=

guessing the problem here is that I have two user-accou= nt fields?


On 20 December 2017 at 00:53, Ludovic Court=C3=A8s <ludo@gn= u.org> wrote:
Please always= keep the list Cc=E2=80=99d.

BJH2017 <brentonhorne77@gmai= l.com> skribis:

> No it doesn't, I have this at the moment:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(name &qu= ot;root")
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(uid 0) >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(group &q= uot;root")
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(home-dir= ectory "/root")
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(shell (f= ile-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 ar= guments:

=C2=A0 (cons account list)

as in:

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

HTH!

Ludo=E2=80=99.

--f403045dc600dd603b0560b2bfe6--