![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1174593
https://bugzilla.suse.com/show_bug.cgi?id=1174593#c28
Josef Möllers
Hm ... when collecting this stuff, it occurred to me that pam_xauth could retrieve the old user name prior to calling pam_get_user() ... stay tuned ...
No show:
pam_syslog(pamh, LOG_NOTICE, "Getting old user name");
-> Getting old user name
if (pam_get_item(pamh, PAM_USER, &old_username) != PAM_SUCCESS) {
:
}
pam_syslog(pamh, LOG_NOTICE, "old user name=%s", old_username);
-> old user name=root
There is next to nothing preceding this (just some options parsing), so
PAM_USER is already set to root and pam_xauth will have a hard time finding the
invoking user.
So best discuss this with sudo's bugwoner:
Kristýna Streitová