Red Hat Bugzilla – Bug 207844
The command `w` only outputs a header
Last modified: 2007-11-30 17:11:44 EST
Description of problem:
The `w` command does not report any user statistics
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. type `w`
[root@grumpy ~]# cat /etc/fedora-release
Fedora Core release 5.92 (FC6 Test3)
[root@grumpy ~]# rpm -q --whatprovides /usr/bin/w
[root@grumpy ~]# w
11:38:06 up 17:07, 0 users, load average: 0.07, 0.12, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
Could it be my setup? I now see that `users` reports empty as well...
[root@grumpy ~]# users
[root@grumpy ~]# rpm -q --whatprovides /usr/bin/users
I can't reproduce this your problem. It seem there is something other wrong in
your system. Do you have mounted the /proc filesystem? You can also try strace
the 'w' process.
Created attachment 137273 [details]
`strace w` output
Thank you for your reply. Yes, /proc is mounted.
[root@grumpy ~]# mount
/dev/mapper/RootOS-Root on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md0 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/mapper/RootOS-Home on /home type ext3 (rw)
/dev/mapper/RootOS-Opt on /opt type ext3 (rw)
/dev/mapper/RootOS-Tmp on /tmp type ext3 (rw)
/dev/mapper/RootOS-Usr on /usr type ext3 (rw)
/dev/mapper/RootOS-Var on /var type ext3 (rw)
/dev/mapper/RootOS-export on /export type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
It seems like a problem with /var/run/utmp - I think you have problem with more
commands (w, users, last, ...)
Having the same problem here on a clean install of FC6 release. 'w' shows
nothing but the header. 'users' gives no response. 'last' seems to be working.
Do you have same problem on updated FC6?
Working fine for me at this point.
Thanks for your feedback.