M
M
mishkamartyshka2016-04-06 00:20:06
NoSQL
mishkamartyshka, 2016-04-06 00:20:06

How to disable anonymous connections to mongodb?

did everything like here https://docs.mongodb.org/v3.0/tutorial/enable-auth... , but at startup
mongod --auth
you can still connect anonymously remotely. How to disable anonymous access?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lega, 2016-04-06
@lega

Have you added admins to the database? (without them, auth is not enabled in some versions)
Try to execute a request to get / change data, perhaps there is still no access.

S
Sveratum, 2016-04-07
@srsd

Configure the use of certificates (SSL). This will solve the access issues.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question