Web Hosting Talk







View Full Version : killing proccesses. urgent. if someone can help please


jasonX
07-28-2002, 02:59 AM
how do you kill all proccesses owned by a certain user? Like whats the command (linux)

thanks.

jayjay
07-28-2002, 03:10 AM
kill NUMBERHERE

Didn't read it correctly the first time, but what GlideTech says is correct

GlideTech
07-28-2002, 03:10 AM
Run a
ps aux | grep USERNAME

Then run a kill on all processes running by that user.

neil
07-28-2002, 03:17 AM
as mentioned do "ps aux | grep USERNAME" which will out put something like this..

neil 30199 0.0 0.2 5484 1596 ? S 03:11 0:00 /usr/sbin/sshd


then you want to do kill -9 XXXXX where.. XXXXX is the number right after the username in the above example. Obviously the name of the process you're killing is the one at the very end of the above example.

DotComster
07-28-2002, 05:26 AM
And - why not delete the abusive user?

clocker1996
07-28-2002, 05:32 AM
Originally posted by DotComster
And - why not delete the abusive user?

who said he/she was abusive?

chirpy
07-28-2002, 05:48 AM
And a nice swift way to do it if there are a lot of user processes (but be very careful - never do this on the root user):

ps --User username -o pid -h | xargs kill -9

Annette
07-28-2002, 01:50 PM
Fast way:

skill -u username

chirpy
07-28-2002, 02:19 PM
That's a nice one :)