[systemd-devel] pam: Don't use loginuid [was: Re: Fix PAM module to not clobber XDG_RUNTIME_DIR with su]

Michael Biebl mbiebl at gmail.com
Wed Nov 20 16:12:58 PST 2013


2013/11/21 Lennart Poettering <lennart at poettering.net>:
> For that, add a new parameter to pam_systemd maybe
> "force-new-session=yes/no" or so which is set in "su -"'s PAM config
> stack, but not in "su"'s PAM config stack (luckily they are stored in
> two separate files).

This is not the case for Debian based distros, fwiw. There is only a
single /etc/pam.d/su config file:

fedora:
# ls /etc/pam.d/su*
/etc/pam.d/su  /etc/pam.d/sudo  /etc/pam.d/sudo-i  /etc/pam.d/su-l

debian:
# ls /etc/pam.d/su*
/etc/pam.d/su  /etc/pam.d/sudo


More information about the systemd-devel mailing list