GNU bug report logs - #32273
home-directory produces wrong /etc/passwd

Previous Next

Package: guix;

Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>

Date: Wed, 25 Jul 2018 20:10:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


Message #10 received at 32273-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: 32273-done <at> debbugs.gnu.org
Subject: Re: bug#32273: home-directory produces wrong /etc/passwd
Date: Fri, 23 Nov 2018 14:33:42 +0100
Hi Oleg,

Oleg Pykhalov <go.wigust <at> gmail.com> skribis:

> I choose a ‘/var/run/guix-offload’ for guix-offload's home directory:
>
> (operating-system
>   (groups (cons* …
>                  (user-group (name "guix-offload"))
>                  %base-groups))
>
>   (users (cons* …
>                 (user-account
>                  (name "guix-offload")
>                  (uid 1982)
>                  (group "guix-offload")
>                  (home-directory "/var/run/guix-offload"))
>                 %base-user-accounts))
>   …
> )
>
>
> but I cannot login to ‘guix-offload’ user with ‘sudo -u guix-offload -i’:
>
> sudo: unable to change directory to /home/guix-offload: No such file or directory
> sudo: unable to execute /gnu/store/q4b3s9y4i0da36drp7zfq9yqcf43s47v-bash-4.4.19/bin/bash: No such file or directory
>
>
> and a ‘getent’ program confirms home directory is wrong:
>
> natsu <at> magnolia ~$ getent passwd guix-offload
> guix-offload:x:1982:30002::/home/guix-offload:/gnu/store/q4b3s9y4i0da36drp7zfq9yqcf43s47v-bash-4.4.19/bin/bash
>
>
> Choosing ‘(home-directory "/home/guix-offload")’ is a workaround.

Sorry for overlooking this bug report.  Someone reported the very same
issue on IRC a few days ago and commit
b297934437932de730432629b361fcb422accbb7 fixes it.

Thanks,
Ludo’.




This bug report was last modified 6 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.