kingston |
12-19-2012 11:58 PM |
user not logged in but still "who -a" shows a record
Hi All
I have script in my server to inform whoever logged in except me and root. Recently a user had logged in but i killed the session by informing the user. But somehow, the script still alerting me that he is logged in. When i check, the command to filter the user name "who" shows his name though his session was killed.
Code:
[root@server1 ~]# w
11:14:43 up 228 days, 21:16, 2 users, load average: 15.48, 11.90, 7.11
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
kinved pts/0 einbalx0014.in.a 11:00 0.00s 0.08s 0.02s sshd: xkinved [priv]
[root@server1 ~]# who -a
May 5 13:59 678 id=si term=0 exit=0
system boot May 5 13:59
run-level 3 May 5 13:59 last=S
May 5 14:00 4050 id=l3 term=0 exit=0
LOGIN tty1 May 5 14:00 31737 id=1
LOGIN tty2 May 5 14:00 31738 id=2
LOGIN tty3 May 5 14:00 31739 id=3
LOGIN tty4 May 5 14:00 31740 id=4
LOGIN tty5 May 5 14:00 31741 id=5
LOGIN tty6 May 5 14:00 31742 id=6
May 5 14:00 31743 id=uags term=0 exit=0
May 5 14:00 31744 id=uvss term=0 exit=0
May 5 14:00 31745 id=dtds term=0 exit=0
kinved + pts/0 Dec 20 11:00 . 20781 (testing.com)
pts/1 Nov 12 16:07 8430 id=ts/1 term=0 exit=0
asapav ? pts/1 Dec 6 18:17 ? 11807
How to kill his ( asapav) session (which is dead but may be exist in the process table) as to avoid receiving alerts? Ofcourse, there is no zombie processes too in process table.
Help me
|