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.
Logged in users on a Linux server are counted twice
2 posts
• Page 1 of 1
Re: Logged in users on a Linux server are counted twice
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.
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.
- linux-user
- Posts: 0
- Joined: Mon Jan 19, 2015 1:15 pm
2 posts
• Page 1 of 1