how to kick off a user

Paul O'Malley ompaul at eircom.net
Tue Feb 7 12:44:37 UTC 2006


Soo-Hyun Choi wrote:

>hi,
>
>how do i kick off an inactive user at a Ubuntu 5.10 machine? i logged
>in myself about a few days ago from my home using ssh, and i surely
>logged off. but somehow i can still see myself logged in the machine.
>i would like to kick off my user account for a security reason.
>
>would it be possible?
>
>cheers,
>
>  
>
type w
you will what terminal the person is attached to so if it is pts then

ps -auwx | grep pts | grep username | grep -v grep

Then

sudo kill -9 pid-for-above

I hope this is of use to you

Regards,

Paul





More information about the ubuntu-users mailing list