PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I was wondering if it was possible to login to root using "su" or another function using shell_exec() or another way? I am trying to kill a process id that I will need root to do.
-Thanks
Last edited by William on Wed Aug 31, 2005 2:30 am, edited 1 time in total.
You may be able to use sudo to do it. You'll have to put your PHP user in the sudousers file though, but then you should be able to do something like this:
Thanks for all your help I will have my friend tell me his method when he gets back. Alot of good ideas thanks . It really isn't that big of a deal just my friend and I where trying to see who could kick echother out of the server faster. So I made a PHP script to get his PID from his IP Address and kick him. But it wasn't killing the process probably because the user wasn't as high as he was. Thanks