title: mongodb data directory permissions
body: <p>Earlier i was storing all the mongodb data files in /var/lib/mongodb directory..and the dbpath entry in /etc/mongodb.conf was /var/lib/mongodb..</p>
  
  <p>Now i want to change the data directory to /vol/db..so I created the directory /vol/db and changed the permissions using sudo chown -R <code>id -u</code> /vol/db and changed the db path entry to /vol/db in /etc/mongodb.conf</p>
  
  <p>now when i start the mongodb using sudo service mongodb start..i am getting this error in /var/log/mongodb/mongodb.log</p>
  
  <p><a href="http://pastebin.com/C0tv8HQN">http://pastebin.com/C0tv8HQN</a></p>
  
  <p>i need help..where I am wrong?</p>