9 ms·
An solution for the people like me, that forget the --auth would be: Situation #1, new database: Start MongoDb without any users, but as soon as the admin user
by SillentTroll 10y ago
An solution for the people like me, that forget the --auth would be:
Situation #1, new database:
Start MongoDb without any users, but as soon as the admin user is added, drop all connections and enable authentication
Situation #2, existing database:
In MongoDB is started with a database, that has admin user but the authentication is not enabled, fail and exit.