Results 1 to 9 of 9
-
07-28-2002, 02:59 AM #1WHT Addict
- Join Date
- Apr 2002
- Posts
- 127
killing proccesses. urgent. if someone can help please
how do you kill all proccesses owned by a certain user? Like whats the command (linux)
thanks.
-
07-28-2002, 03:10 AM #2Web Hosting Master
- Join Date
- Mar 2002
- Location
- Mass
- Posts
- 727
kill NUMBERHERE
[edit] Didn't read it correctly the first time, but what GlideTech says is correct [/edit]Jason
-
07-28-2002, 03:10 AM #3Web Hosting Guru
- Join Date
- May 2002
- Posts
- 344
Run a
ps aux | grep USERNAME
Then run a kill on all processes running by that user.Chris Miller
PromoPunch
Custom Imprinted Promotional Products
www.promopunch.com 1-800-750-8530 x221
-
07-28-2002, 03:17 AM #4Web Hosting Evangelist
- Join Date
- Jul 2001
- Location
- Indianapolis, IN
- Posts
- 537
as mentioned do "ps aux | grep USERNAME" which will out put something like this..
Code:neil 30199 0.0 0.2 5484 1596 ? S 03:11 0:00 /usr/sbin/sshd
neil MCITP, VCP
-
07-28-2002, 05:26 AM #5Web Hosting Master
- Join Date
- Jun 2002
- Location
- Arabia
- Posts
- 678
And - why not delete the abusive user?
-
07-28-2002, 05:32 AM #6Disabled
- Join Date
- Nov 2001
- Location
- Canada
- Posts
- 1,963
Originally posted by DotComster
And - why not delete the abusive user?
-
07-28-2002, 05:48 AM #7Web Hosting Guru
- Join Date
- Jun 2002
- Posts
- 289
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
-
07-28-2002, 01:50 PM #8Web Hosting Master
- Join Date
- Apr 2000
- Posts
- 1,714
Fast way:
skill -u username
-
07-28-2002, 02:19 PM #9Web Hosting Guru
- Join Date
- Jun 2002
- Posts
- 289
That's a nice one