uptime user count is short, similar to who -u -H

asked 2017-04-11 15:56:11 -0600

leonpetrosky gravatar image

Four users are logged into console and four users logged in remotely over ssh. Only 5 users reported by uptime, not the expected 8. who -u -H ;echo "UPTIME:" ; uptime ; ps -efw | egrep pts | egrep bash | egrep -v grep NAME LINE TIME IDLE PID COMMENT user6 tty2 2017-04-11 09:14 04:24 1848 (/dev/tty2) user6 pts/4 2017-04-11 09:37 . 8420 (192.168.1.147) user6 pts/5 2017-04-11 09:39 02:57 7279 (192.168.1.147) user6 pts/6 2017-04-11 09:41 03:38 6952 (192.168.1.147) user__6 pts/7 2017-04-11 09:42 . 6133 (192.168.1.147)

UPTIME: 13:38:29 up 4:24, 5 users, load average: 0.01, 0.09, 0.08 user6 2376 2365 0 09:15 pts/0 00:00:00 bash user6 773 2365 0 09:17 pts/1 00:00:00 bash user6 32114 2365 0 09:18 pts/2 00:00:00 bash user6 31842 2365 0 09:19 pts/3 00:00:00 bash user6 8446 8424 0 09:37 pts/4 00:00:00 -bash user6 7298 7291 0 09:39 pts/5 00:00:00 -bash user6 6980 6960 0 09:41 pts/6 00:00:00 -bash user6 6168 6145 0 09:42 pts/7 00:00:00 -bash

edit retag flag offensive close merge delete

Comments

1

Welcome to ask.fedora. On my box, if I open a terminal and run uptime, it reports one user, not the two (my GUI and terminal logins) that it used to before I upgraded to F 25. If I leave the terminal open, move to a different virtual console and log in as myself, uptime reports 2 instead of the expected three.

sideburns gravatar imagesideburns ( 2017-04-11 17:00:55 -0600 )edit