How about:

fuser -k /dev/pts/12

Will kill all processes on that tty.

You can also kill all processes owned by that user with something like:

ps -ef | awk '$1 == "username" { print $2 }' | xargs kill -9

-Steve

-----Original Message-----
From: Reuben D. Budiardja [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:21 AM
To: [EMAIL PROTECTED]
Subject: log-out a user - How To



Hi, 
I have an idle user log in from pts/12. I think it's an artifact because the 
user was using vncviewer, and then when I killed the vncserver, the login is 
still there. I want to delete the user (using userdel) from my system but I 
can't because it says the user is login.

How do I log him out from that session? Of course, I have a root access.

Thanks.
RDB

-- 
-------------------------------------------------
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format
 X   attachments.
/ \
-------------------------------------------------
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-------------------------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to