Mailinglist Archive: opensuse (2441 mails)

< Previous Next >
who vs w output
  • From: Scott Leighton <helphand@xxxxxxxxxxx>
  • Date: Sat, 18 Jun 2005 23:21:34 -0700
  • Message-id: <200506182321.35327.helphand@xxxxxxxxxxx>

I'm perplexed over the output of who versus
w. who displays 8 'users', two of which I know
for sure are not logged on the box. ( the last
two entries ).

helphand :0 2005-06-18 10:36 (console)
root tty1 2005-06-11 21:11
helphand pts/0 2005-06-18 10:36
helphand pts/2 2005-06-18 10:36
helphand pts/1 2005-06-18 10:36
helphand pts/4 2005-06-18 16:19
dirtkid pts/6 2005-06-18 19:12
dirtkid pts/7 2005-06-18 19:15


w displays 6 'users', yet the count on the first
line agrees with 'who', it says 8 users.

helphand@helphand:~> w
23:17:49 up 9 days, 5:12, 8 users, load average: 0.04, 0.10, 0.09
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
helphand :0 10:36 ?xdm? 1:18m 0.07s /bin/sh /usr/X11R6/bin/kde
root tty1 11Jun05 7days 0.13s 0.13s -bash
helphand pts/0 10:36 12:41m 0.00s 27.23s kded [kdeinit] kded
helphand pts/2 10:36 11:19m 0.66s 0.11s /bin/bash
helphand pts/1 10:36 2:58m 0.21s 0.09s /bin/bash
helphand pts/4 16:19 0.00s 0.29s 0.00s w
helphand@helphand:~>

A ps shows no processes running under the 'user'
that lists in who;

helphand@helphand:~> ps -ef | grep dirtkid
helphand 10752 23285 0 23:18 pts/4 00:00:00 grep dirtkid

So, why aren't these utilities consistent and why
does 'who' see users as logged in when they are
not? SuSE 9.3 64 bit.

Scott


--
POPFile, the OpenSource EMail Classifier
http://popfile.sourceforge.net/
Linux 2.6.11.4-21.7-default x86_64

< Previous Next >