GNU bug report logs - #35553
getlogin and getlogin_r fail with error ENXIO

Previous Next

Package: guix;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Fri, 3 May 2019 23:04:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 35553 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Bruno Haible <bruno <at> clisp.org>, 35553 <at> debbugs.gnu.org
Subject: Re: bug#35553: getlogin and getlogin_r fail with error ENXIO
Date: Sat, 4 May 2019 15:13:10 +0200
[Message part 1 (text/plain, inline)]
http://man7.org/linux/man-pages/man8/pam_loginuid.8.html suggests that we should
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=1]                     pam_permit.so
session requisite                       pam_deny.so
session required                        pam_permit.so
session required        pam_unix.so 
session optional                        pam_winbind.so 
session required        pam_loginuid.so 

And then they @include the file above in /etc/pam.d/gdm
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 6 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.