[SLL] Quick question about "who"
Mike Schuh
schuh at farmdale.com
Tue Aug 26 23:52:17 PDT 2008
On Wed, 27 Aug 2008, Mike Stunes wrote:
>Is there some reason why the number of users reported by "uptime" and
>the number reported by "who" would be different?
>
>stunes at homebox:pts/0 ~ % uptime
> 01:20:34 up 9 days, 2:13, 2 users, load average: 0.08, 0.11, 0.12
>stunes at homebox:pts/0 ~ % who
>stunes :0 2008-08-27 01:08
>stunes at homebox:pts/0 ~ %
On my system (FC8) they are the same.
>Logging again at a console made uptime show 3 users, and who listed 2.
>Anyone know what's going on?
Possibly a rogue process?
What does this return:
ps -ef | grep -v mingetty |awk '{print $1,$6}' | \
egrep -v '\?|^UID TTY$' | sort -u | wc -l
(leave off the wc to see who's logged in)
One of the "users" on my system is root, running /usr/bin/X Perhaps your
version of who does not show this user?
--
Mike Schuh - Seattle, Washington USA
http://www.farmdale.com
More information about the linux-list
mailing list