The common method for killing all of a users processes
usually involves grepping the users name from 'ps', then
using awk to get the process id's and submitting them
to 'kill -9'.
The problems with doing this way are that it is slow, and
more importantly, it doesn't always kill all of the processes
on the first try.
There is a way to do this that always kills all of the users
processes the first time, and is very fast:
su - username -c 'kill -9 -1'
This tip generously supported by: jkstill@teleport.com NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.