Mongodump is not working , getting "not authorized"

Can you please show us the mongodump command you are running? Did you add the -u to the command to authenticate into the database?

When you say you are “root” do you mean on the server/vm or did you authenticate into the mongodb shell? Because just because you are root on the server doesn’t mean you have authorization to run commands on MongoDB until you authenticate.

1 Like