emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#32273: closed (home-directory produces wrong /etc/


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32273: closed (home-directory produces wrong /etc/passwd)
Date: Fri, 23 Nov 2018 13:34:01 +0000

Your message dated Fri, 23 Nov 2018 14:33:42 +0100
with message-id <address@hidden>
and subject line Re: bug#32273: home-directory produces wrong /etc/passwd
has caused the debbugs.gnu.org bug report #32273,
regarding home-directory produces wrong /etc/passwd
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32273: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32273
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: home-directory produces wrong /etc/passwd Date: Wed, 25 Jul 2018 23:09:00 +0300
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---
address@hidden ~$ 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: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#32273: home-directory produces wrong /etc/passwd Date: Fri, 23 Nov 2018 14:33:42 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Hi Oleg,

Oleg Pykhalov <address@hidden> 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:
>
> address@hidden ~$ 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’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]