Re: How to kill a logged in user?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Ti kill completelly the user, use the skill command, take care using it,
read it's man page.

skill <user>
skill -9 <user>

Regards,

-- 
Alexandre Cavalcante Alencar (Skarmeth)
alexandre@xxxxxxxxxxxxx skarmeth@xxxxxxxxxxxxx
http://people.debian-ce.org/skarmeth/

Grupo de Usuários GNU/Linux e de Software Livre do Ceará - Debian-CE
http://www.debian-ce.org
http://listas.cipsga.org.br/cgi-bin/mailman/listinfo/debian-ce
       
Projeto Software Livre Ceará - PSL-CE
http://psl-ce.softwarelivre.org
http://listas.softwarelivre.org/mailman/listinfo/psl-ce

Linux Registred User....: 260571    ICQ Instant Message.....: 87355854
Yahoo Instant Message...: Skarmeth  Skype IP Telephony......: Skarmeth

On Tue, 2004-11-09 at 09:07, Marko Hausalo wrote:
> Mostafa Z. Afgani wrote:
> > So, I would like to know if there is any way to kill those
> > sessions/users? I have tried googling for an answer but couldn't find
> > anything satisfactory.
> 
> Check with who who is online:
> # who
> root     pts/49       Nov  9 13:10 (hostname.domain.xx)
> 
> where you see that there's an connection to pts/49 in my case.
> Then make an ps command like this to see if there's an active
> shell:
> # ps ax | grep "pts/49"
> 32265 ?        S      0:00 sshd: root@pts/49
> 32267 pts/49   S      0:00 -bash
> 32663 pts/49   R      0:00 ps ax
> 32664 pts/49   R      0:00 grep pts/49
> 
> Here you see there's active connections thru sshd and an shell
> -> 32267 pts/49   S      0:00 -bash
> then just as root give the command
> # kill -9 32267
> and the connection should drop. If there's no shell for the
> connection try killing the sshd or whatever process that is
> hanging there.
> 
> Hope this helps and I hope I did understand your problem
> correctly!
> 
> Regards,
>    Marko


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux