LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   uptime cmd shows 5 users but thats wrong (https://www.linuxquestions.org/questions/slackware-14/uptime-cmd-shows-5-users-but-thats-wrong-568216/)

thoron! 07-10-2007 04:26 PM

uptime cmd shows 5 users but thats wrong
 
when i do uptime it shows 5 users, but when i do who cmd it shows the 4 names that are logged in i know there arnt 5 users is there sum proccess or maybe xwindows is showing as another user? any help on this would be much appreciated.


nevermind, i figured out what it was.

thoron! 07-11-2007 03:15 PM

well i thought i had this fixed but i guess not heres the deal i am the only one logged into the system and i am running xwindows here is what uptime shows:

16:10:21 up 1 day, 19:33, 5 users, load average: 0.23, 0.13, 0.04

this is what who says:

thoron tty2 2007-07-10 13:17
thoron pts/0 2007-07-10 13:17 (:0)
thoron pts/1 2007-07-11 15:20 (:0.0)

i am only logged into the system via f2 terminal so im guessing thats tty2.

can anyone help me with this or exsplain why it shows 5 users and 3 people in in the output of the who command when i am the only one logged in.

thnks for any help given,
thoron

alisonken1 07-11-2007 04:43 PM

Quote:

Originally Posted by thoron!
{snip}
16:10:21 up 1 day, 19:33, 5 users, load average: 0.23, 0.13, 0.04

this is what who says:

thoron tty2 2007-07-10 13:17
thoron pts/0 2007-07-10 13:17 (:0)
thoron pts/1 2007-07-11 15:20 (:0.0)
{snip|

tty2 would be <alt><f2> CLI console
pts/0 (:0) would probably be XWindows server
pts/1 (:0.0) would probably be XWindows on display 0 (or first monitor)

What distribution/version of Linux are you running?

thoron! 07-11-2007 06:24 PM

slackware 12.0, and i only have 1 moniter

Gew 02-19-2012 01:21 PM

Similar issue.
 
Hi guys!

I'm bumping this one, considering my problem is the same.

I've summarized it over here. Please help, any ideas would be appreciated.

Is there some sort of daemon/service for the users-logged-on-count that I could reset without rebooting my machine?

Perhaps doing some combinations of the initial 'init' command? What would then be the best suggestion?

Cheers!

EDIT:
Darn.
I just noticed this thread is under the Slackware sub-category.
Hopefully an answer could be of generic outcome.

Cedrik 02-19-2012 01:38 PM

Usually pts/* are xterm/rxvt etc terminals

XGizzmo 02-20-2012 06:19 PM

X server is counted as a user, So if you are in X it will always show 1 extra user.

Gew 02-21-2012 02:58 PM

This solved my issues:
Code:

sudo tee /var/run/utmp </dev/null


All times are GMT -5. The time now is 03:18 AM.