This bug no longer exists in Ubuntu 19.04/disco. Here is the log I get when I do ssh then "su -":
Apr 10 14:08:42 xeelee systemd[1]: Started User Manager for UID 0. Apr 10 14:08:42 xeelee systemd[1]: Started Session 447 of user root. Apr 10 14:08:42 xeelee systemd[28391]: Reached target Default. Apr 10 14:08:42 xeelee systemd[28391]: Startup finished in 75ms. Apr 10 14:08:47 xeelee su[28502]: (to bonnaudl) root on pts/30 Apr 10 14:08:47 xeelee su[28502]: pam_unix(su-l:session): session opened for user bonnaudl by root(uid=0) Apr 10 14:09:08 xeelee su[28502]: pam_unix(su-l:session): session closed for user bonnaudl I still get this error: $ systemctl --user status Failed to connect to bus: No such file or directory but this is for another bug report... ** Changed in: systemd (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1668641 Title: Error message: pam_systemd(su:session): Cannot create session: Already running in a session Status in systemd package in Ubuntu: Fix Released Status in systemd package in Debian: Fix Released Bug description: Hi, here is how to reproduce this error: 1. log in to the root account with ssh 2. run "su - some_user_account" Here is what I see in the logs: Feb 28 15:21:45 xeelee su[9843]: Successful su for bonnaudl by root Feb 28 15:21:45 xeelee su[9843]: + /dev/pts/10 root:bonnaudl Feb 28 15:21:45 xeelee su[9843]: pam_unix(su:session): session opened for user bonnaudl by root(uid=0) Feb 28 15:21:45 xeelee su[9843]: pam_systemd(su:session): Cannot create session: Already running in a session Feb 28 15:21:48 xeelee su[9843]: pam_unix(su:session): session closed for user bonnaudl In another usage scenario of "su -" there is no error message and the creation of a new session: févr. 28 15:08:15 vougeot su[18962]: Successful su for bonnaudl by root févr. 28 15:08:15 vougeot su[18962]: + /dev/pts/0 root:bonnaudl févr. 28 15:08:15 vougeot su[18962]: pam_unix(su:session): session opened for user bonnaudl by bonnaudl(uid=0) févr. 28 15:08:15 vougeot systemd-logind[1162]: New session c9 of user bonnaudl. févr. 28 15:08:15 vougeot systemd[1]: Started Session c9 of user bonnaudl. févr. 28 15:08:17 vougeot su[18962]: pam_unix(su:session): session closed for user bonnaudl févr. 28 15:08:17 vougeot systemd-logind[1162]: Removed session c9. ProblemType: Bug DistroRelease: Ubuntu 16.10 Package: libpam-systemd 231-9ubuntu3 Uname: Linux 4.10.1-041001-generic x86_64 ApportVersion: 2.20.3-0ubuntu8.2 Architecture: amd64 CurrentDesktop: KDE Date: Tue Feb 28 15:21:09 2017 EcryptfsInUse: Yes SourcePackage: systemd UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1668641/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp