From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 01 13:05:51 2021 Received: (at 50945) by debbugs.gnu.org; 1 Oct 2021 17:05:51 +0000 Received: from localhost ([127.0.0.1]:57259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWLyp-0003oI-Ij for submit@debbugs.gnu.org; Fri, 01 Oct 2021 13:05:51 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:51248 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWLyn-0003o6-OL for 50945@debbugs.gnu.org; Fri, 01 Oct 2021 13:05:50 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1633107944; bh=0gBjl7legZOGhQIeisJXgigJhGD/NzO3kQ4a9QYam/U=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=urX4ZUvKZAsdGeVMjsRhYYWlqlT/dmenH4wJmtpHu0PqHX7NpMFgXPr8VGWUryX5t wkfU54Q4UzrBp3POPAcJvrAf+6e3bh1KPtjPT9xj4CEkuTRsPtHot594AhDWplu2Oe VVHPkF8vZiCaLNliqAUSUP2w8PpHVf7Km6xU+epo= To: Jan Nieuwenhuizen , 50945@debbugs.gnu.org Subject: Re: bug#50945: Guix home: No such file or directory: "/run/user/1003/on-first-login-executed" In-Reply-To: <87y27czr0v.fsf@gnu.org> References: <87y27czr0v.fsf@gnu.org> Date: Fri, 01 Oct 2021 19:05:40 +0200 Message-ID: <87ilygllp7.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Fri, Oct 01 2021, Jan Nieuwenhuizen wrote: > Hi, > > When using su or sudo to enter an account managed by guix home, I get > this error > > --88--- > Backtrace: > 2 (primitive-load "/ho [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 PDS_RDNS_DYNAMIC_FP RDNS_DYNAMIC with FP steps X-Debbugs-Envelope-To: 50945 Cc: Andrew Tropin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Fri, Oct 01 2021, Jan Nieuwenhuizen wrote: > Hi, > > When using su or sudo to enter an account managed by guix home, I get > this error > > --88--- > Backtrace: > 2 (primitive-load "/ho [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 PDS_RDNS_DYNAMIC_FP RDNS_DYNAMIC with FP steps --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Oct 01 2021, Jan Nieuwenhuizen wrote: > Hi, > > When using su or sudo to enter an account managed by guix home, I get > this error > > --8<---------------cut here---------------start------------->8--- > Backtrace: > 2 (primitive-load "/home/guix/.guix-home/on-first-login") > In ice-9/ports.scm: > 461:11 1 (call-with-output-file "/run/user/1003/on-first-login-=E2=80= =A6" =E2=80=A6) > In unknown file: > 0 (open-file "/run/user/1003/on-first-login-executed" "w" =E2= =80=A6) > > ERROR: In procedure open-file: > In procedure open-file: No such file or directory: "/run/user/1003/on-fir= st-login-executed" > --8<---------------cut here---------------end--------------->8--- > > Upon a console login or ssh login, /var/run/1003 is created and all is fi= ne. > > See below for the scenario, home-minimal.scm is attached. > > Greetings, > Janneke [ Cc Andrew who did most of the work on Guix Home ] I think this is because Guix Home relies on $XDG_RUNTIME_DIR to be defined, otherwise it falls-back to /run/user/UID. But it looks like /run/user/UID isn=E2=80=99t created when using =E2=80=98su=E2=80=99 to logi= n. I don=E2=80=99t really know how these things work under the hood; maybe using $XDG_RUNTIME_DIR isn=E2=80=99t best idea. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFXP+QVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5becQAL7ZlFkF0dSuO3SIN6Npvb6cSrNj yjELwonVnqSuFYfiQcSt7C/7iEtH+clWjVac7HxGwxIspl6c+dkPKAcgcTJyyfCn P4rrUtVmwxchQh/MjRCLZp6y+v9CMQLA/91fzi1VlOrsxYYttz05Yn2h7k36TAsX sLgWGUvK16ohanoja+1oOh7PPCrYy8ufarK3TnBOrGu3lUIBIm6v+bnr3gLicjIk ODJJ/VZyN2g64SQgbVMtyzZHLX3xCwQGD88ZZCmyqT3938408cpybUJelXx5RjuV WVyG1hsMEwT2IMaJBosP/ZLjxlRIeQGF/eYFXoadkgfF9DJJcHGj7N671IkBCkY6 I4RkXybPDx2JqWGbA4NmPjovrX2yALF0EaF0YGNOpvqPanVvdtJpHL1WxZHV+9jW /gGBt/H1rnEYxi2h42oke6rsGpiexouro5TAbzrjincD62U2lc3MADuoyGHErsnN 6gQDVK4kdOwiH5VTw8jgVaH26wgnekF2ySKR90nraiImUhvu9a4iuV/jrDObZjzv ZllX2T5Dz1+mRVi2o2rUY9pqmZsnsG6vc9R1YzxTimv7KDfqeCi3SB7GxzF6bexE iQJe08X9UwBrFWSnTsSUsJ2lzYQgFyRBmOXo7Q7zO6TElq4Q7bOEwYlBuNJgUGnq oOt/vw45UPc0x+R5 =hnkm -----END PGP SIGNATURE----- --=-=-=--