title: MongoDB - Permission denied for socket: /tmp/mongodb-27017.sock
body: <p>I had an unclean shutdown of MongoDB on Ubuntu 10.04 LTS. Now when I login as root and run Mongodb via service mongodb start, I get below error- </p>
  
  <pre><code>Mon Dec 12 13:53:15 [initandlisten] ERROR: listen(): bind() failed errno:13 Permission denied for socket: /tmp/mongodb-27017.sock
  </code></pre>
  
  <p>When I run MongoDB manually via root, it works just fine. </p>
  
  <p>I can confirm that there is no /tmp/mongodb-27017.sock file </p>
  
  <pre><code>root@devbox:~# ll /tmp/
  total 16
  drwxr-xr-x  4 root root 4096 2011-12-12 13:53 ./
  drwxr-xr-x 25 root root 4096 2011-12-11 13:06 ../
  drwxrwxrwt  2 root root 4096 2011-12-12 13:01 .ICE-unix/
  drwxrwxrwt  2 root root 4096 2011-12-12 13:01 .X11-unix/
  </code></pre>
  
  <p>Where do I begin troubleshooting? </p>