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

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - After running su, user/session looses active state"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57887">57887</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>After running su, user/session looses active state
          </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>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>arne.staecker@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>I'm running Gentoo and systemd 196.

When I run 'su' in a terminal under KDE and switch to root, my normal user and
user's session looses the "active" state and switches to "online". And so my
normal user looses all device file permissions. After exit the su mode, the
state is still "online".

Last know working version was 193. Could't test intermediate versions because
of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - systemd 194: pam_systemd "Failed to create session: Invalid argument""
   href="show_bug.cgi?id=55656">bug #55656</a>.

Before 'su':
$ loginctl show-session 1
Id=1
Timestamp=So, 2012-12-02 23:27:45 CET
TimestampMonotonic=4397266
DefaultControlGroup=name=systemd:/user/arne/1
VTNr=7
Display=:0
Remote=no
Service=kde-np
Leader=301
Audit=1
Type=x11
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=arne

$ loginctl show-user 1000
UID=1000
GID=1000
Name=arne
Timestamp=So, 2012-12-02 23:27:45 CET
TimestampMonotonic=4390137
RuntimePath=/run/user/1000
DefaultControlGroup=name=systemd:/user/arne
Display=1
State=active
Sessions=1
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

After 'su':
$ loginctl show-session 1
Id=1
Timestamp=So, 2012-12-02 21:28:24 CET
TimestampMonotonic=4368073
DefaultControlGroup=name=systemd:/user/arne/1
VTNr=7
Display=:0
Remote=no
Service=kde-np
Leader=298
Audit=1
Type=x11
Class=user
Active=no
State=online
KillProcesses=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=arne

$ loginctl show-user 1000
UID=1000
GID=1000
Name=arne
Timestamp=So, 2012-12-02 21:28:24 CET
TimestampMonotonic=4360683
RuntimePath=/run/user/1000
DefaultControlGroup=name=systemd:/user/arne
Display=1
State=online
Sessions=1
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0</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>