Computing.Net > Forums > Linux > How to kill a user on a shell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to kill a user on a shell

Reply to Message Icon

Name: iN3cRyPT
Date: December 9, 2003 at 14:12:21 Pacific
OS: RH 9
CPU/Ram: dual xeon 2.0
Comment:

j/w how you would kill a user on a remote shell, i know you can list them by doing who, but i have no clue how to kill a user, can someone help me out plz?



Sponsored Link
Ads by Google

Response Number 1
Name: Kury77
Date: December 9, 2003 at 15:42:09 Pacific
Reply:

do `who -u` to get a list of the current logins. `who -uH` if you want colnumn headers.

Then use the kill command followed by the Process ID (PID) ex. `kill 1234`
If that doesn't kill it (because its hung or thinking really really hard) you can do `kill -9 1234` where 1234 is the PID and it will kill it imidiatly...

let me know if you have any questions


0

Response Number 2
Name: 3Dave
Date: December 10, 2003 at 03:18:11 Pacific
Reply:

To kill off all of a users processes at once:

# su - username -c 'kill -9 -1'


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to kill a user on a shell

How to encrypt a password in Linux www.computing.net/answers/linux/how-to-encrypt-a-password-in-linux/19055.html

how to create a users' web account www.computing.net/answers/linux/how-to-create-a-users-web-account-/24535.html

how to setup a iptables, squid..... www.computing.net/answers/linux/how-to-setup-a-iptables-squid/28328.html