From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: bug#23971: Nobody has a shell Date: Sat, 23 Jul 2016 08:48:12 +0200 Message-ID: References: <874m7tjiyj.fsf@gnu.org> <87twfr2gui.fsf@gnu.org> 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]:36019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQqkE-0001qp-Oj for bug-guix@gnu.org; Sat, 23 Jul 2016 02:49:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQqkA-0002Yt-IZ for bug-guix@gnu.org; Sat, 23 Jul 2016 02:49:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQqkA-0002Yp-F4 for bug-guix@gnu.org; Sat, 23 Jul 2016 02:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bQqkA-0006ej-7Z for bug-guix@gnu.org; Sat, 23 Jul 2016 02:49:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87twfr2gui.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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 23971-done@debbugs.gnu.org On Fri, Jul 15, 2016 at 3:03 PM, Ludovic Court=C3=A8s wrote: > Vincent Legoll skribis: > >>> Indeed, fixed in 2d94702ff4133606cda1e51a2c8378a8e79afb9d. >>> >>> The =E2=80=98shell=E2=80=99 field was omitted from the definition of = =E2=80=9Cnobody=E2=80=9D, which is >>> why it ended up using Bash, which is the default shell. >> >> Thanks the fix looks good, but I tried with guix system reconfigure >> after guix pull >> That does not change /etc/passwd > > It does change /etc/passwd (specifically, this is done in =E2=80=98modify= -user=E2=80=99 > in activation.scm, which is itself run from the activation script of the > new system that =E2=80=98guix system reconfigure=E2=80=99 runs; note that= this changes > the shell but leaves the home directory unchanged, see the comment in > there.) > > Could it be that you did not run =E2=80=98guix pull=E2=80=99 as root? Re= member that > =E2=80=98guix pull=E2=80=99 is per-user: Yep, that was probably the case. I tested in a new VM (from scratch) 0.10.0 usb install - initially: /var/empy + bash - guix pull + reconfigure : usermod: change shell to nologin, but home dir stayed the same - delete user nobody + guix system reconfigure: user nobody is back, with /nonexistent home dir So this looks like it is fixed, and next usb install should be good from 1st day... --=20 Vincent Legoll