Package: procps
Version: 2:4.0.4-8
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Recently, the 'w' command stopped showing sessions when there are multiple
sessions in the same ssh connection.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. Set up ssh so that it uses shared connection for multiple sessions:
   add these lines to /etc/ssh/ssh_config
ControlMaster   auto
ControlPath     ~/.ssh/socket-%h-%p-%r
ControlPersist  60

2. Open multiple terminals and create multiple connection to the same ssh
   host that is running Debian Sid or Trixie

3. Run 'w' in one of the sessions on the remote host

   * What was the outcome of this action?

You get output like:
 14:11:00 up 32 min,  2 users,  load average: 1,03, 1,53, 1,21
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
mikulas  pts/0    192.168.1.1      13:59   11:16   8:25   8:25  w

'w' shows only one line despite the fact that there are multiple
    connections

   * What outcome did you expect instead?

You should see separate line for each session, such as:
 14:11:00 up 32 min,  3 users,  load average: 1,03, 1,53, 1,21
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
mikulas  pts/0    192.168.1.1      13:59   11:16   8:25   8:25  w
mikulas  pts/1    192.168.1.1      13:59   11:16   8:25   8:25  -bash
mikulas  pts/2    192.168.1.1      13:59   11:16   8:25   8:25  -bash

*** End of the template - remove these template lines ***




Note that on systems with sysvinit and without systemd, it 'w' shows
multiple lines, but all the lines show the same terminal and the same
command. For example this:
 14:15:43 up 15 min,  3 users,  load average: 0,00, 0,00, 0,00
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
mikulas  pts/2    192.168.1.1      14:15    0.00s  0.01s   ?    w
mikulas  pts/2    192.168.1.1      14:15    0.00s  0.01s   ?    w
mikulas  pts/2    192.168.1.1      14:15    0.00s  0.01s   ?    w

-- System Information:
Debian Release: 13.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable'), (1, 'experimental')
Architecture: hppa (parisc64)

Kernel: Linux 6.13.2 (SMP w/4 CPU threads)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages procps depends on:
ii  init-system-helpers  1.68
ii  libc6                2.41-10
ii  libncursesw6         6.5+20250216-2
ii  libproc2-0           2:4.0.4-8
ii  libsystemd0          257.7-1
ii  libtinfo6            6.5+20250216-2

Versions of packages procps recommends:
pn  linux-sysctl-defaults  <none>
ii  psmisc                 23.7-2

procps suggests no packages.

-- no debconf information

Reply via email to