<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>high
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - systemd 194: pam_systemd "Failed to create session: Invalid argument""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=55656">55656</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd 194: pam_systemd "Failed to create session: Invalid argument"
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vovan@vovan.nl
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Starting with systemd-194, pam_systemd prints following error:

Oct 05 08:47:57 xxx sudo[6850]: pam_systemd(sudo:session): Asking logind to
create session: uid=1000 pid=6850 service=sudo type=tty class=user seat=seat0
vtnr=7 tty=/dev/
Oct 05 08:47:57 xxx sudo[6850]: pam_systemd(sudo:session): Failed to create
session: Invalid argument

Although command "sudo" still works, "su" fails with similar error:

Oct 05 08:41:51 xxx su[8140]: pam_systemd(su:session): Asking logind to create
session: uid=1000 pid=8140 service=su type=tty class=user seat=seat0 vtnr=7
tty=/dev/pts/8 
Oct 05 08:41:51 xxx su[8140]: pam_systemd(su:session): Failed to create
session: Invalid argument
Oct 05 08:41:51 xxx su[8140]: pam_open_session: Cannot make/remove an entry for
the specified session

Reverting to systemd-193 solves this problem.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>