title: How to run pm2 so other server users are able to access the process?
body: <p><strong>When I start my Nodejs app with <a href="https://github.com/Unitech/PM2">pm2</a>, other server users are not able to access the process.</strong></p>
  
  <p>Even if I start pm2 from a custom directory (not current user's <code>~/</code>, what pm2 is using by default):</p>
  
  <pre><code>HOME=/var/www pm2 start app.js
  </code></pre>
  
  <p><em>Directory is accessible by any user</em> (comparing to <code>~/</code>, but there's still no way other server user is able to access the process.</p>
  
  <p>When other server user does <code>pm2 list</code>, it shows him 0 processes are running – but there are (started by another user). And when other user tries <code>HOME=/var/www pm2 list</code>, CLI throws an error:</p>
  
  <pre><code>events.js:72
      throw er; // Unhandled 'error' event
            ^
  Error: connect EACCES
      at errnoException (net.js:905:11)
      at Object.afterConnect [as oncomplete] (net.js:896:19)
  </code></pre>
  
  <p>So I am wondering how to make sure users are able to access pm2 processes run by other server users? Or it shall be approached differently?</p>
  
  <hr>
  
  <p>I am wondering why every server user is able to make <code>git pull</code> to deploy latest source code from a Git repository, but can't restart <code>pm2</code> process afterwards? Only the user that started <code>pm2</code> process is able to restart it… Weird.</p>