From: ludo@gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 32273-done@debbugs.gnu.org
Subject: bug#32273: home-directory produces wrong /etc/passwd
Date: Fri, 23 Nov 2018 14:33:42 +0100 [thread overview]
Message-ID: <87h8g77wax.fsf@gnu.org> (raw)
In-Reply-To: <87r2jrnkmb.fsf@gmail.com> (Oleg Pykhalov's message of "Wed, 25 Jul 2018 23:09:00 +0300")
Hi Oleg,
Oleg Pykhalov <go.wigust@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@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’.
prev parent reply other threads:[~2018-11-23 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-25 20:09 bug#32273: home-directory produces wrong /etc/passwd Oleg Pykhalov
2018-11-23 13:33 ` Ludovic Courtès [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=87h8g77wax.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=32273-done@debbugs.gnu.org \
--cc=go.wigust@gmail.com \
/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).