Force logout a user
You terminate a session by killing its parent process, called the session leader. Find out which process it is with:
ps -dN|grep pts/3
To kill and logout a user, you can send KILL signal. Type the following command:
# skill -KILL -u vivek
Check these links for more information:
- http://www.cyberciti.biz/tips/howto-linux-kill-and-logout-users.html
- http://www.serverschool.com/server-security/how-to-kill-a-user-session-on-a-linux-server/