Page 1 of 1

Logged in users on a Linux server are counted twice

PostPosted: Sun Feb 01, 2015 5:30 pm
by SUDESH-A
Scenario:
1. Log into a linux server interface as root.
2. Inititiate an SSH session with the server using Putty and a valid user account (e.g. user1).
3. Log into TTY2 of the linux server interface using another valid user account (e.g. user2).

Issue:
With these three login sessions, the linux server reports that there are five (5) users logged into the server and lists the users as:
user2
user1
user1
user2
root
The TTY2 and SSH sessions are counted twice. :idea: :idea: :idea: :idea:

Re: Logged in users on a Linux server are counted twice

PostPosted: Mon Feb 02, 2015 2:26 pm
by linux-user
Hey Sudesh,

It looks like tty2 is spawning a psuedo terminal which is what would happen if tty2 were running X. It's interesting that your ssh session is doing the same thing. It's like the session is being forked. I suspect tty on the seesion would show the pts i.e /dev/pts/3 and /dev/pts/0.