title: How to allow a normal user to kill a certain root application in visudo with no password
body: <p>I wanna allow a normal user to kill a certain application which is started by root user.</p>
  
  <p>In visudo:</p>
  
  <p>I added a line like this:</p>
  
  <pre><code>normal_user ALL=(ALL) NOPASSWD: /usr/bin/kill $(ps aux | grep 'target_application' | awk '{print $2}')
  </code></pre>
  
  <p>But after save it and execute the following command as normal_user, I still get the prompt for root password:</p>
  
  <pre><code>sudo /usr/bin/kill $(ps aux | grep 'target_application' | awk '{print $2}')
  </code></pre>
  
  <p>What should I do then? Thanks a lot!</p>