From: Danny Milosavljevic <dannym@scratchpost.org>
To: Bruno Haible <bruno@clisp.org>, 35553@debbugs.gnu.org
Subject: bug#35553: getlogin and getlogin_r fail with error ENXIO
Date: Sat, 4 May 2019 15:13:10 +0200 [thread overview]
Message-ID: <20190504151310.317c7f7b@scratchpost.org> (raw)
In-Reply-To: <5210151.GY8qDU4yXC@omega>
[-- Attachment #1: Type: text/plain, Size: 748 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-05-04 13:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-03 23:03 bug#35553: getlogin and getlogin_r fail with error ENXIO Bruno Haible
2019-05-04 13:13 ` Danny Milosavljevic [this message]
2019-05-04 13:26 ` Bruno Haible
2019-05-07 10:18 ` Ludovic Courtès
2019-05-09 10:13 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190504151310.317c7f7b@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=35553@debbugs.gnu.org \
--cc=bruno@clisp.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.