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.
Free eBook - 101 Ways to Waste Your Life!
2 weeks ago