You have been subscribed to a public bug:

== Comment: #0 - Kowshik Jois B S <kowshik.j...@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@ubhost2504:~# ls /run/utmp
ls: cannot access '/run/utmp': No such file or directory


Additional details:

root@ubhost2504:~# systemctl restart systemd-logind.service 
root@ubhost2504:~# sleep 5
root@ubhost2504:~# ls /run/utmp
ls: cannot access '/run/utmp': No such file or directory
root@ubhost2504:~#

root@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@ubhost2504:~

root@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@ubhost2504:~#

root@ubhost2504:~# whoami
root
root@ubhost2504:~# tty
/dev/hvc0
root@ubhost2504:~#


Contact Information = kowshik.j...@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@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.

** Affects: systemd (Ubuntu)
     Importance: Undecided
     Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
         Status: New


** Tags: architecture-ppc64le bugnameltc-212187 severity-low 
targetmilestone-inin---
-- 
"who" command is not listing the users
https://bugs.launchpad.net/bugs/2103489
You received this bug notification because you are a member of Ubuntu Touch 
seeded packages, which is subscribed to systemd in Ubuntu.

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to