title: mongodump against access control
body: <p>I was trying mongodump to backup some dbs in mongodb and I have auth enabled in my mongodb.</p>
  
  <p>I have one super user with role: "root" and db: "admin"
  and one with dbOwner for a specific db abc.</p>
  
  <p>I tried this following command</p>
  
  <pre><code>mongodump --username admin --password "xyz" --authenticationDatabase admin
  
  
  error - Failed: error dumping metadata: error creating directory for metadata file dump/abc: mkdir dump: permission denied
  </code></pre>
  
  <p>may be I need to use the credentials of the dbOwner but I thought being the super user one can do that.</p>
  
  <p>Pls tell me how to use these two credentials in mongodump command.</p>