GNU bug report logs

#29706 GuixSD: Please add the ability to change shells for root

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #20 received at 29706@debbugs.gnu.org (full text, mbox, reply):

Received: (at 29706) by debbugs.gnu.org; 19 Dec 2017 15:34:52 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 19 10:34:52 2017
Received: from localhost ([127.0.0.1]:42459 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1eRJuu-0005ow-K9
	for submit@debbugs.gnu.org; Tue, 19 Dec 2017 10:34:52 -0500
Received: from mail.pompo.co ([87.243.223.35]:43486 helo=ronja.pompo.co)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex@pompo.co>) id 1eRJut-0005oj-3Z
 for 29706@debbugs.gnu.org; Tue, 19 Dec 2017 10:34:51 -0500
Received: from rosser (unknown [91.182.239.136])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by ronja.pompo.co (Postfix) with ESMTPSA id E0E70402F8;
 Tue, 19 Dec 2017 15:34:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pompo.co; s=mail;
 t=1513697685; bh=aUw2+Cf+BX0KRcyyfZz9PGwhBEE1QCDJ/G61gYHpdtE=;
 h=References:From:To:Cc:Subject:Reply-To:In-reply-to:Date:From;
 b=V9ZauR/GqTMfgY6ROrxvG9rRBI7hOE8WoYBKC6L7tI0N4kED0wD5/XoTs2KGPdxUB
 WnT7MIB6zYAr9ridpMsWqACKpIusJudYWscqtdkbbt3WnHgHrV1hyJ4AKrVRx29GXW
 WCKlfPz2bwPsC1S6ulIWhRVAKe2yKJuGapII2ygc=
References: <CANb+58+BMeVR0Vw5GenuejY5GTcovFsbn-hkw5+LZ5yQ6MpQaQ@mail.gmail.com>
 <87o9mv7k8o.fsf@gnu.org>
 <CANb+58KywakA5fYBQPV6sPrdm5EFAFd3dPKRiDeK-rncTYvrPg@mail.gmail.com>
 <8737466a6r.fsf@gnu.org>
 <CANb+58KT8HzksVpktAPtzKkv9yKz7mfdmnEpXrGUMzWZ-q7TiQ@mail.gmail.com>
User-agent: mu4e 0.9.18; emacs 25.3.1
From: Alex Sassmannshausen <alex@pompo.co>
To: BJH2017 <brentonhorne77@gmail.com>
Subject: Re: bug#29706: GuixSD: Please add the ability to change shells for
 root
In-reply-to: <CANb+58KT8HzksVpktAPtzKkv9yKz7mfdmnEpXrGUMzWZ-q7TiQ@mail.gmail.com>
Date: Tue, 19 Dec 2017 16:34:43 +0100
Message-ID: <87mv2eg298.fsf@pompo.co>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 29706
Cc: 29706@debbugs.gnu.org
X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Reply-To: alex@pompo.co
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
Hi,

BJH2017 writes:

> (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?

That's correct.  Either use:

(cons (user-account ...)
      (cons (user-account ...)
            %base-user-accounts))

Or

(cons* (user-account ...) (user-account ...) %base-user-accounts)

HTH,

Alex

> On 20 December 2017 at 00:53, Ludovic Courtès <ludo@gnu.org> wrote:
>
>  Please always keep the list Cc’d.
>
>  BJH2017 <brentonhorne77@gmail.com> 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 (_ _)>
>
>  ‘cons’ adds an element to a list, so it takes two arguments:
>
>  (cons account list)
>
>  as in:
>
>  (cons (user-account …) %base-user-accounts)
>
>  HTH!
>
>  Ludo’.





Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Tue Sep 9 00:51:38 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.