On Monday 31 March 2003 10:18 am, Rigler, Steve wrote: > 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
OK, this is getting weirder. Earlier, I did try to kill all processes run by that user manually using ps -uax | grep username and then just kill -9 pid Now, 'w' and 'ps -uax' does not show the user at all, but 'who' shows that the user is currently log in. 'userdel' still fails with messagge: user username is currently log in /dev/pts/12 does not exist. Any help? Thanks. RDB > -----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