Before enabling authentication in MongoDB, we'll have to create a user and assign it a built-in role. We'll use the built-in "root" role that provides admin access to all databases.
I've done this in Ubuntu using MongoDB 3.2.
wget on Windows
5 years ago