root can kill any program run by any user. Is it possible for a user to kill another user's program without using
Example: How can make user
foo kill program
x which is run by user
This is from the
So essentially, under normal circumstances, if you are not root (and have no way to become root or that other user, via sudo or
It's only possible for root and bar to kill a process owned by bar. Sudo/setuid programs change foo's privileges to those of root.
See Gilles answer at Why does bash ignore SIGTERM?
First, this isn't specific to bash. ATT ksh, dash and zsh behave the same way: they ignore SIGTERM and SIGQUIT during command line edition; as for mksh, it also doesn't quit but treats them like SIGINT.
Both the ksh manual and the bash manual justify ignoring SIGTERM in these terms:
kill 0 kills all processes in the process group that the shell is in¹. In a nutshell, the process group consists of all the processes running in the foreground on a terminal, or all the processes in a background or suspended job.