Bug#825949: pam_systemd(su:session): Cannot create session: Already running in a session
Laurent Bonnaud
L.Bonnaud at laposte.net
Tue Feb 28 14:20:41 GMT 2017
Hi,
the problem is still there in this package version:
Package: libpam-systemd
Version: 232-18
Here is what happens when I su from root to a normal user:
févr. 28 15:01:36 irancy su[7313]: Successful su for bonnaudl by root
févr. 28 15:01:36 irancy su[7313]: + /dev/pts/0 root:bonnaudl
févr. 28 15:01:36 irancy su[7313]: pam_unix(su:session): session opened for user bonnaudl by root(uid=0)
févr. 28 15:01:36 irancy su[7313]: pam_systemd(su:session): Cannot create session: Already running in a session
févr. 28 15:01:39 irancy su[7313]: pam_unix(su:session): session closed for user bonnaudl
If I pile up 2 su (normal user -> root -> normal user), then I get no error message and the creation of a new session:
févr. 28 15:17:23 irancy su[9191]: Successful su for bonnaudl by root
févr. 28 15:17:23 irancy su[9191]: + /dev/pts/2 root:bonnaudl
févr. 28 15:17:23 irancy su[9191]: pam_unix(su:session): session opened for user bonnaudl by bonnaudl(uid=0)
févr. 28 15:17:23 irancy systemd-logind[2859]: Existing logind session ID 50 used by new audit session, ignoring
févr. 28 15:17:23 irancy systemd[1]: Started Session c2 of user bonnaudl.
févr. 28 15:17:23 irancy systemd-logind[2859]: New session c2 of user bonnaudl.
févr. 28 15:17:24 irancy su[9191]: pam_unix(su:session): session closed for user bonnaudl
févr. 28 15:17:24 irancy systemd-logind[2859]: Removed session c2.
--
Laurent.
More information about the Pkg-systemd-maintainers
mailing list