Results 1 to 9 of 9
  1. #1

    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.

  2. #2
    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

  3. #3
    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

  4. #4
    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
    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.
    neil MCITP, VCP

  5. #5
    Join Date
    Jun 2002
    Location
    Arabia
    Posts
    678
    And - why not delete the abusive user?

  6. #6
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    Originally posted by DotComster
    And - why not delete the abusive user?
    who said he/she was abusive?

  7. #7
    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

  8. #8
    Fast way:

    skill -u username
    Annette
    Hosting Matters, Inc.
    Superior service. Sensible price.

  9. #9
    That's a nice one

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •