I am developing a daemon that is acting up and I am now unable to create any new processes (ie. I cannot start a new process to kill the other rogue processes). So, I need to be able to kill the processes from a remote machine. How do I do "kill" remotely without admin privileges? If I cannot kill my own process from a remote machine as a normal user then tell me so I can mark it as the correct answer.
|
show 2 more comments
feedback
|
|
In order to kill a process running on a machine, some local process (or the kernel) has to emit the killing signal. So you need a way to cause a process to emit that signal, and since you can't create a new process, you need to find a way that relies exclusively on already-running processes. There is no standard daemon that can help you there. They would all process your authentication, then fork a new process (such as a shell) running as you. So if you have no console access and have no existing interaction with the machine, you're out of luck. From your comments, it sounds like you still have a shell on the machine. Then there are things you can do. You can't run any external process, such as Each process has an associated directory under A way to display the contents of a file without forking is
You can kill many processes at once by passing them all to
Pick values of NUM other than | |||
|
feedback
|
|
The following information was found at http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/ Kill process using kill command under Linux/UNIXkill command works under both Linux and UNIX/BSD like operating systems. step #1: First, you need to find out process PID (process id)Use ps command or pidof command to find out process ID (PID). Syntax: ps aux | grep processname pidof processname For example if process name is lighttpd, you can use any one of the following command to obtain process ID:
OR use pidof command which is use to find the process ID of a running program:
Output 3486 Step #2: kill process using PID (process id)Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:
OR
Where, -9 is special Kill signal, which will kill the process. killall command examplesDO NOT USE killall command on UNIX system (Linux only command). You can also use killall command. The killall command kill processes by name (no need to find PID):
Kill Firefox process:
As I said earlier killall on UNIX system does something else. It kills all process and not just specific process. Do not use killall on UNIX system (use kill -9). | |||||||||||
feedback
|
|
As you said in your comment, an admin is the only person who can help you at this point. I suggest you obtain the Perl cookbook and read section 16.19 for the correct method of handling zombies. | |||
|
feedback
|
pkillorkill? That's at least two new processes which will have to be created. – Doug Harris Oct 28 '10 at 18:39