[Bug 2103489] Re: "who" command is not listing the users
Bruno Haible
2103489 at bugs.launchpad.net
Thu Apr 24 02:22:41 UTC 2025
Re #12:
> This issue was added to the Ubuntu 25.04 release notes:
> https://discourse.ubuntu.com/t/plucky-puffin-release-notes/48687#p-120902-systemd-v2574
This releases notes says:
"While some tools, such as w from the procps package have support for systemd-logind sessions, other tools like who from coreutils do not."
This is a blatant lie. 'who' from coreutils 9.5 *does* support for the
systemd-logind sessions. You only have two build it appropriately.
More in detail:
1) You need to pass the configure option '--enable-systemd' (as stated in #11 above).
2) You need to have installed libsystemd-dev at build time. The problem is in this file:
https://archive.ubuntu.com/ubuntu/pool/main/c/coreutils/coreutils_9.5-1ubuntu1.dsc
It has a Build-Depends line that is *missing* libsystemd-dev.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2103489
Title:
"who" command is not listing the users
Status in The Ubuntu-power-systems project:
Confirmed
Status in Release Notes for Ubuntu:
Fix Released
Status in coreutils package in Ubuntu:
Triaged
Status in systemd package in Ubuntu:
Won't Fix
Status in coreutils package in Debian:
Confirmed
Bug description:
== Comment: #0 - Kowshik Jois B S <kowshik.jois at in.ibm.com> - 2025-03-17 09:06:44 ==
---Problem Description---
"who" command is not listing the users.
---Steps to Reproduce---
1. Install Ubuntu25.04 on a PowerVM LPAR
2. Execute "who" command
---uname output---
Linux ubhost2504 6.14.0-10-generic #10-Ubuntu SMP Wed Mar 12 16:05:46 UTC 2025 ppc64le ppc64le ppc64le GNU/Linux
root at ubhost2504:~# ls /run/utmp
ls: cannot access '/run/utmp': No such file or directory
Additional details:
root at ubhost2504:~# systemctl restart systemd-logind.service
root at ubhost2504:~# sleep 5
root at ubhost2504:~# ls /run/utmp
ls: cannot access '/run/utmp': No such file or directory
root at ubhost2504:~#
root at ubhost2504:~# apt list --installed | grep -E "coreutils|procps|util-linux|sysvinit"
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
coreutils/plucky,now 9.5-1ubuntu1 ppc64el [installed,automatic]
procps/plucky,now 2:4.0.4-4ubuntu5 ppc64el [installed,automatic]
sysvinit-utils/plucky,now 3.14-1ubuntu1 ppc64el [installed,automatic]
util-linux/plucky,now 2.40.2-14ubuntu1 ppc64el [installed]
root at ubhost2504:~
root at ubhost2504:~# apt list --installed | grep -E "util-
linux|systemd|login"
WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.
libnss-systemd/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
libpam-systemd/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
libsystemd-shared/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
libsystemd0/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
login.defs/plucky,now 1:4.16.0-7ubuntu1 all [installed,automatic]
login/plucky,now 1:4.16.0-2+really2.40.2-14ubuntu1 ppc64el [installed,automatic]
python3-systemd/now 235-1build5 ppc64el [installed,upgradable to: 235-1build6]
systemd-cryptsetup/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
systemd-hwe-hwdb/plucky,now 256.4.1 all [installed,automatic]
systemd-resolved/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
systemd-sysv/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
systemd-timesyncd/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
systemd/now 257.2-3ubuntu1 ppc64el [installed,upgradable to: 257.3-1ubuntu3]
util-linux/plucky,now 2.40.2-14ubuntu1 ppc64el [installed]
root at ubhost2504:~#
root at ubhost2504:~# whoami
root
root at ubhost2504:~# tty
/dev/hvc0
root at ubhost2504:~#
Contact Information = kowshik.jois at in.ibm.com
Machine Type = P10 Rainier
---Debugger---
A debugger is not configured
Userspace tool common name: systemd
The userspace tool has the following bit modes: 64-bit
The file /run/utmp is missing.
Create the file by running:
# touch /run/utmp
Adjust the ownership and permissions:
# chown root:utmp /run/utmp; chmod g+w /run/utmp
Log out from the system and log back in.
root at ubhost2504:~# who
root pts/0 2025-03-18 06:03 (10.231.203.30)
Correct. That file is missing and it should get auto generated upon reboot. But in this case it is not happening.
Manual creation of the file will solve the issue temporarily but once
the machine gets rebooted, the existing file will gets deleted(this is
expected) and after reboot the file will be missing again(this is a
bug. regeneration of that file should happen automatically after
reboot but is not happening)
We are not seeing /var/run/utmp .. installed systemd/plucky,now 257.3-1ubuntu3 ppc64el [installed,automatic]
but these file is missing.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/2103489/+subscriptions
More information about the foundations-bugs
mailing list