Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-85757

w: TTY column is empty for ssh sessions

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: Generate New Ti...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0.beta
    • procps-ng
    • None
    • Yes
    • None
    • rhel-plumbers
    • ssg_core_services
    • 24
    • 26
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      When using "w", the TTY column is empty (ie: no "pts/n") for ssh sessions (maybe others).

      On RHEL9 this used to work.

      The "who" command correctly reports TTY

      ==========================================

      Steps to reproduce:

      [root@localhost ~]# rpm -q procps-ng
      procps-ng-4.0.4-5.el10.x86_64

      [root@localhost ~]# w
       20:28:21 up  1:51,  4 users,  load average: 0.00, 0.00, 0.00
      USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
      root               18:38   51:03   0.00s  0.16s /usr/lib/systemd/systemd --user
      root     tty1      19:40    7:01   1.01s  0.51s ssh localhost
      root               19:58   51:03   0.00s  0.10s sshd-session: root [priv]
      root               20:21   51:03   0.00s  0.01s sshd-session: root [priv]

      [root@localhost ~]# who
      root     tty1         2025-03-29 19:40
      root     pts/0        2025-03-29 19:58 (::1)
      root     pts/1        2025-03-29 20:21 (192.168.1.10)

       

              jrybar@redhat.com Jan Rybar
              giulio.orsero@goldenpro.it Giulio Orsero (Inactive)
              Jan Rybar Jan Rybar
              RHEL CS Plumbers QE Bot RHEL CS Plumbers QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: