* bug#32273: home-directory produces wrong /etc/passwd
@ 2018-07-25 20:09 Oleg Pykhalov
2018-11-23 13:33 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Oleg Pykhalov @ 2018-07-25 20:09 UTC (permalink / raw)
To: 32273
[-- Attachment #1: Type: text/plain, Size: 1998 bytes --]
Hello Guix,
I've added a guix-offload user to my system, because I've found that
‘~/.guile’ with following content break ‘guix offload’.
--8<---------------cut here---------------start------------->8---
(use-modules (ice-9 readline))
;; Enable completion at the REPL.
(activate-readline)
;; Colorize
(use-modules (ice-9 colorized))
(activate-colorized)
(define-macro (try function)
`(catch 'quit (lambda () ,function) (const #f)))
--8<---------------cut here---------------end--------------->8---
I choose a ‘/var/run/guix-offload’ for guix-offload's home directory:
--8<---------------cut here---------------start------------->8---
(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))
…
)
--8<---------------cut here---------------end--------------->8---
but I cannot login to ‘guix-offload’ user with ‘sudo -u guix-offload -i’:
--8<---------------cut here---------------start------------->8---
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
--8<---------------cut here---------------end--------------->8---
and a ‘getent’ program confirms home directory is wrong:
--8<---------------cut here---------------start------------->8---
natsu@magnolia ~$ getent passwd guix-offload
guix-offload:x:1982:30002::/home/guix-offload:/gnu/store/q4b3s9y4i0da36drp7zfq9yqcf43s47v-bash-4.4.19/bin/bash
--8<---------------cut here---------------end--------------->8---
Choosing ‘(home-directory "/home/guix-offload")’ is a workaround.
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#32273: home-directory produces wrong /etc/passwd
2018-07-25 20:09 bug#32273: home-directory produces wrong /etc/passwd Oleg Pykhalov
@ 2018-11-23 13:33 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-11-23 13:33 UTC (permalink / raw)
To: Oleg Pykhalov; +Cc: 32273-done
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’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-23 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-25 20:09 bug#32273: home-directory produces wrong /etc/passwd Oleg Pykhalov
2018-11-23 13:33 ` Ludovic Courtès
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).