I used mongodb on my local without authentication by running mongod
as server and connecting it by just mongo
as a user.
Now after creating users and running the server as mongod --auth
i can connect using user id and pwd assigned by me.
The problem is while connecting back mongo with mongod
it again gets connected to the database and whole database is visible again,this should not happen as I have enabled the authentication.
Using mongod
as a server should block the users from getting access. Same is the problem for my personal server.
Is there any solution to enable the security permanently that is enable mongod --auth
and not just mongod.