I am trying to write a php script to kill users in a redhat machine.
I know it is possible (and very insecure) to give apache the ability to do things as root, but I nee
Use the skill command instead:
skill -9 -u username