LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   More then 1 user shown logged on when checking uptime. (https://www.linuxquestions.org/questions/general-10/more-then-1-user-shown-logged-on-when-checking-uptime-631648/)

RHLinuxGUY 03-30-2008 01:38 AM

More then 1 user shown logged on when checking uptime.
 
Really quick, should I be seeing the following?

$ uptime
23:37:46 up 30 days, 23:40, 4 users, load average: 0.17, 0.20, 0.76

I only have 3 accounts, root, me (george), and 'anyone'. Should I be worried? Or is this normal?

mechdave 03-30-2008 05:10 AM

Try running users command and it will tell you who is logged in

RHLinuxGUY 03-30-2008 03:26 PM

So I just did that, it said I was logged in 3 times. How do I log off the other ones? I checked my other terminals (ctrl+alt+f*) and none of them have me logged in.

colucix 03-30-2008 03:31 PM

Check the command who: it will tell you that you have an active console session, a pseudoterminal pts/0 and one or more other pseudoterminals allocated, depending on the number of terminal windows (that is shell sessions) you've opened. I think it's pretty normal.

RHLinuxGUY 03-30-2008 04:57 PM

O ok, I just closed some terminals and it showed less of me logged in. I understand now, thanks for the help.

colucix 03-30-2008 05:12 PM

You're welcome. You can try also the command:
Code:

$ w -f
 00:08:06 up 2 days,  1:25,  3 users,  load average: 0.75, 0.51, 0.42
USER    TTY      FROM              LOGIN@  IDLE  JCPU  PCPU WHAT
colucix  :0      console          Fri28  ?xdm?  1:51m  0.23s /bin/sh /usr/bi
colucix  pts/0    -                Fri28    2days  0.00s  8.35s kded [kdeinit]
colucix  pts/1    -                23:38    0.00s  0.02s  0.00s w -f

this will give information on the most recent application running on each terminal. Clearly, :0 and pts/0 are related to the X login.


All times are GMT -5. The time now is 11:38 PM.