pam_open_session returns PAM_SUCCESS but no pam session?

Thorsten Kukuk kukuk at suse.de
Mon Dec 6 08:25:09 UTC 2010


On Sun, Dec 05, Henk te Sligte wrote:

> I figured from the examples, xsh.c would spawn a shell with the new
> logged in user, because it got the credentials from PAM. Why else is
> there the system() call in xsh.c (From the examples, in the release
> build)?

Yes, xsh spawns a new shell, but not with the new logged
in user. xsh is not su or a su replacement.
xsh does not login at all, it does _user authentication_.
That's all.

  Thorsten

-- 
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Markus Rex, HRB 16746 (AG Nuernberg)




More information about the Pam-list mailing list