GNU bug report logs -
#32273
home-directory produces wrong /etc/passwd
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32273 in the body.
You can then email your comments to 32273 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#32273
; Package
guix
.
(Wed, 25 Jul 2018 20:10:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 25 Jul 2018 20:10:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <at> 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.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Fri, 23 Nov 2018 13:34:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 23 Nov 2018 13:34:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 32273-done <at> debbugs.gnu.org (full text, mbox):
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’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Dec 2018 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.