I'm running mongod on virtual machine (vagrant) and inside the config file ,I've set the authorization to enabled
it is known that the mongod with security enabled(both authentication and authorization) can not authenticate the user since there are no users and here you can create the superuser ("root") on the admin db via connecting to the mongod via the localhost (localhost exception)
but after I connect to the server, when I want to create a root user on admin, an error message pops up saying
Error: couldn't add user: there are no users authenticated
by the way, the steps I followed are exactly the same as that in the course of cluster administration from MongoDB University
how to fix this?
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/a2680fb1-02e6-4451-aeda-c7b61686cbe1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CA%2ByT_t1c6UfsZWzJxMqyEUcOihm8umPXF12dDKdxL1OYWJAWmg%40mail.gmail.com.
I haven't used vagrant but in virtual box vm you would have to set the nic to bridged to be able to connect from outside of the vm
On Wed, Dec 11, 2019, 11:32 AM Karrar mohammed <k.moha...@gmail.com> wrote:
here is the config filestorage:dbPath: "/var/mongodb/db"systemLog:destination: filepath: "/var/mongodb/db/mongod.log"logAppend: truesecurity:authorization: enablednet:bindIp: "127.0.0.1,192.168.103.100"port: 28000processManagement:fork: trueoperationProfiling:mode: slowOpslowOpThresholdMs: 50
To unsubscribe from this group and stop receiving emails from it, send an email to mongod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/a2680fb1-02e6-4451-aeda-c7b61686cbe1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongod...@googlegroups.com.