From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: bug#29706: GuixSD: Please add the ability to change shells for root Date: Tue, 19 Dec 2017 16:34:43 +0100 Message-ID: <87mv2eg298.fsf@pompo.co> References: <87o9mv7k8o.fsf@gnu.org> <8737466a6r.fsf@gnu.org> Reply-To: alex@pompo.co Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRJvN-0008CT-DG for bug-guix@gnu.org; Tue, 19 Dec 2017 10:36:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRJv4-0004dP-4G for bug-guix@gnu.org; Tue, 19 Dec 2017 10:35:21 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33778) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRJv3-0004cs-SP for bug-guix@gnu.org; Tue, 19 Dec 2017 10:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRJv3-0005pO-MF for bug-guix@gnu.org; Tue, 19 Dec 2017 10:35:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: 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: BJH2017 Cc: 29706@debbugs.gnu.org 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 wrote: > > Please always keep the list Cc’d. > > 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 to > > # > > ‘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’.