title: how to terminate a process which is run with sudo? Ctrl+C do it, but not kill
body: <p>At my company, some commands are allowed to run with sudo, such as tcpdump. Others not.</p>
  
  <p>I expect run tcpdump for a while, and then stop it.
  When I run tcpdump, and I could abort that with Ctrl+C</p>
  
  <p>I wrote a shell script like this -</p>
  
  <pre><code>#!/bin/sh
  sudo tcpdump -ieth1 -w ~/dump.bin
  sleep 5
  kill -2 $!
  </code></pre>
  
  <p>it doesn't really work. The process of tcpdump is run as root, and current user is a normal account.</p>
  
  <p>My question is: is there any way to do the equivalent of ctrl c in bash script?.</p>
  
  <p>EDIT:</p>
  
  <p>ps:As my company's security policy, I cannot run kill as root.</p>