title: Mongo DB privileges to insert data in a specific database?
body: <p>I'm fighting to get my MongoDB container to work with authentication.</p>
  
  <p>I created a database, and a user on that database with the <strong>dbAdmin</strong> role. But it seems this role is not enough to be able to insert data to the database, because when I run a script which populates my DB, I get this kind of error message:</p>
  
  <pre><code>error: not authorized on mydb to execute command { insert: "attachs", documents: 59, writeConcern: { getLastError: 1, w: 1 }, ordered: false }
  </code></pre>
  
  <p>So I guess I need to add some other privileges for my user, but I can't figure out which are missing.</p>