From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#35553: getlogin and getlogin_r fail with error ENXIO Date: Sat, 4 May 2019 15:13:10 +0200 Message-ID: <20190504151310.317c7f7b@scratchpost.org> References: <5210151.GY8qDU4yXC@omega> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/PmqU0rBOAfiI/szqjeTSz.T"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMuUN-0008Gb-9u for bug-guix@gnu.org; Sat, 04 May 2019 09:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMuUM-0007pK-2c for bug-guix@gnu.org; Sat, 04 May 2019 09:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMuUL-0007ob-V7 for bug-guix@gnu.org; Sat, 04 May 2019 09:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMuUL-00058B-Jp for bug-guix@gnu.org; Sat, 04 May 2019 09:14:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <5210151.GY8qDU4yXC@omega> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Bruno Haible , 35553@debbugs.gnu.org --Sig_/PmqU0rBOAfiI/szqjeTSz.T Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable http://man7.org/linux/man-pages/man8/pam_loginuid.8.html suggests that we s= hould use that for all "entry point"s for the user. I guess we can add it. Are you logging in using gdm? We don't refer to pam_loginuid.so anywhere, so it's understandable that /proc/self/loginuid is not set either. Apparently, Ubuntu has the following: /etc/pam.d/common-session-noninteractive: session [default=3D1] pam_permit.so session requisite pam_deny.so session required pam_permit.so session required pam_unix.so=20 session optional pam_winbind.so=20 session required pam_loginuid.so=20 And then they @include the file above in /etc/pam.d/gdm --Sig_/PmqU0rBOAfiI/szqjeTSz.T Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzNj+YACgkQ5xo1VCww uqV0iwf/W5JLgtoHQnMAPrFI79Puu+ywJ739La/6uv6aKFRdyWSEVJVacsNkpqpq AoPeKUSqMeUtYnnnb+BUjjxgF6S04Ysw0GnuykySfNwbxSbUWdjNJTAPGGyQQfRY rgu/gWJHSyxGYdTaNKgEjvah9F+rDqaKncqElB6+I8lekTeeabr26RNC71+UIxaa LwjV8CWbkGhQ3HAynLsRPfjyq5L5wBQXwi5ByaEwI0hzAT6Oe4Fl08QOKxmoWccS QBocEsb6nHiNvnfH11h5F04QQkkH1+UV8vrbaE1Ssy8PPwdWHM61ADk5BHDVQQs3 qN/59lVbiRw/0P8LMHOxa5ExMNXUAA== =WkIW -----END PGP SIGNATURE----- --Sig_/PmqU0rBOAfiI/szqjeTSz.T--