title: Why is the ps command issued by a user performed by root user on MacOS?
body: <p>I recently noticed that when I run a <code>ps</code> command in a term (Terminal, iTerm, ...) the command is run by the root user. </p>
  
  <pre><code>machine:~ vincent$ ps ux | grep ps
  vincent  2846   0,2  0,0  4277992    848 s001  S+    2:10     0:00.00 grep ps
  root     2845   0,2  0,0  4287948   1120 s001  R+    2:10     0:00.00 ps ux
  </code></pre>
  
  <p>This happens both when typing the command as an admin and as a regular user with no admin privilege, and this affects both Yosemite and High Sierra (so probably many other system versions).</p>
  
  <p>Why is that?</p>
  
  <p>Are there other commands affected by this behavior?</p>