From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29706: GuixSD: Please add the ability to change shells for root Date: Mon, 18 Dec 2017 23:18:47 +0100 Message-ID: <87o9mv7k8o.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eR3kY-0005jt-Tm for bug-guix@gnu.org; Mon, 18 Dec 2017 17:19:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eR3kU-0001Y0-UC for bug-guix@gnu.org; Mon, 18 Dec 2017 17:19:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eR3kU-0001Xr-PZ for bug-guix@gnu.org; Mon, 18 Dec 2017 17:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eR3kU-0006hB-Gu for bug-guix@gnu.org; Mon, 18 Dec 2017 17:19:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (BJH's message of "Thu, 14 Dec 2017 18:38:26 +1000") 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 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.