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