unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 23971-done@debbugs.gnu.org
Subject: bug#23971: Nobody has a shell
Date: Sat, 23 Jul 2016 08:48:12 +0200	[thread overview]
Message-ID: <CAEwRq=odBtMMCU0WNnkvRLzAh9a_8j7vAExCetvaZv6ZEgAP1w@mail.gmail.com> (raw)
In-Reply-To: <87twfr2gui.fsf@gnu.org>

On Fri, Jul 15, 2016 at 3:03 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> Vincent Legoll <vincent.legoll@gmail.com> skribis:
>
>>> Indeed, fixed in 2d94702ff4133606cda1e51a2c8378a8e79afb9d.
>>>
>>> The ‘shell’ field was omitted from the definition of “nobody”, 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 ‘modify-user’
> in activation.scm, which is itself run from the activation script of the
> new system that ‘guix system reconfigure’ 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 ‘guix pull’ as root?  Remember that
> ‘guix pull’ 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...

-- 
Vincent Legoll

      reply	other threads:[~2016-07-23  6:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-13 10:10 bug#23971: Nobody has a shell Vincent Legoll
2016-07-13 22:01 ` Ludovic Courtès
2016-07-14 10:25   ` Vincent Legoll
2016-07-14 18:36     ` Efraim Flashner
2016-07-14 20:10     ` Leo Famulari
2016-07-15  7:30       ` Vincent Legoll
2016-07-15 13:03     ` Ludovic Courtès
2016-07-23  6:48       ` Vincent Legoll [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEwRq=odBtMMCU0WNnkvRLzAh9a_8j7vAExCetvaZv6ZEgAP1w@mail.gmail.com' \
    --to=vincent.legoll@gmail.com \
    --cc=23971-done@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).