Every user when logged gets a pseudo terminal. If you enter
Code:
who
mauricio pts/0 Jul 19 18:37
root pts/1 Jul 19 18:39
root pts/2 Jul 19 21:00
osvaldo pts/5 Jul 20 02:19 (Modelo)
you will see who is logged on your machine. If you enter
Code:
ps t pts/5
PID TTY STAT TIME COMMAND
15776 pts/5 S 0:00 -bash
you will see the programs executing in this pseudo terminal. All you have to do is
of the sessions you want to log off. See the who gives the remote machine from where came the connection.
I hope this helps