LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-06-2010, 08:30 AM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
What is "normal" output of who?


I was just wondering about the output of who. When I run who with from a terminal in X the output is something like this when I should be the only active login, in this case as root:
PHP Code:
root@dtest:~# who
root     tty1         2010-01-06 07:51
root     pts
/0        2010-01-06 08:24 (:0)
root     pts/1        2010-01-06 08:24 (:0.0
If I run who from the console with no X started I only get
PHP Code:
root@dtest:~# who
root     tty1         2010-01-06 07:51 
Is this normal and can someone tell me what the second 2 outputs mean exactly, I understand that one of them would relate to display 0, but I'm not sure which or what the other would mean then.
 
Old 01-06-2010, 08:34 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
$ who
craig tty7 2010-01-04 23:52 (:0)
craig pts/0 2010-01-06 08:52 (:0)
craig pts/1 2010-01-06 06:46 (:0)
craig pts/2 2010-01-06 09:31 (:0)
tty7 is X, the others are the 3 tabs I have open in lxterminal. One would assume they are instances of bash running. And if I look at lxtask , there are 3 bash processes running.
 
Old 01-06-2010, 08:49 AM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Thanks. I was wondering because on a new slackware install ssh logins take forever to authenticate compared to a previous test install of the same setup causing me to get nervous to the point of shutting down sshd which is a hassle to say the least.
 
Old 01-06-2010, 11:25 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
ssh logins take forever to authenticate compared to a previous test install
Don't forget that ssh -vvv will give you very, very verbose logging, so maybe you can see what is going wrong.
 
Old 01-06-2010, 06:35 PM   #5
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by tredegar View Post
Don't forget that ssh -vvv will give you very, very verbose logging, so maybe you can see what is going wrong.
I hadn't known that to forget, but I'm very glad to know it now!

Thanks
 
  


Reply



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
square brackets in output of "ps aux" not matching output of "ps -ejH" alirezan1 Linux - Newbie 14 07-14-2010 04:17 AM
printing hh in hh:mm using "awk '{FS=":";print $1}'" misses first line of output!! mayankmehta83 Linux - Newbie 2 12-03-2009 02:55 AM
"failed to execute child process" "Input/output error" fl.bratu Fedora 4 12-15-2008 04:03 AM
Feeding the output of "diff" or "cat" command to dpkg --purge kushalkoolwal Debian 9 06-19-2008 07:27 AM
k3b: To choose "normal" or "clone" copying grautu Linux - Software 1 01-09-2006 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration