LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 03-30-2008, 02:38 AM   #1
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
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?
 
Old 03-30-2008, 06:10 AM   #2
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Try running users command and it will tell you who is logged in
 
Old 03-30-2008, 04:26 PM   #3
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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.
 
Old 03-30-2008, 04:31 PM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 03-30-2008, 05:57 PM   #5
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Original Poster
Rep: Reputation: 30
O ok, I just closed some terminals and it showed less of me logged in. I understand now, thanks for the help.
 
Old 03-30-2008, 06:12 PM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking to see when users logged in otacon 14112 Linux - Security 4 04-02-2007 10:44 AM
Checking for users that haven't logged on keysorsoze Linux - Newbie 9 04-17-2006 02:45 AM
user logged on with ssh not shown with w or who galle Linux - General 4 02-10-2006 11:24 AM
How can you get uptime shown in username@host Shr00mBoXx Slackware 7 04-24-2004 05:39 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 09:34 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration