Skip to content

w Command Bug in Ubuntu 24.04 Affecting ls-users Script #12

@YuZhong-Chen

Description

@YuZhong-Chen

Summary

The w command in Ubuntu 24.04 has multiple bugs that cause incorrect output for TTY, idle time, and login information. This affects the ls-users script which relies on w command output to display currently logged-in users.

Problem Description

The w command in Ubuntu 24.04 (procps version 2:4.0.4-4ubuntu3.2) has multiple bugs:

  • Missing TTY column: TTY information is not displayed (empty column)
  • Incorrect idle time: Shows incorrect idle times for all users
  • Incorrect login time: Login time display is incorrect

Reference

Conclusion

Given that the bug has minimal impact, building from source seems unnecessary.
Perhaps we can simply wait for Ubuntu to release an official fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions