I am setting up mongo db
in ubuntu 18.04
. I have installed it using the commands given on their page. After the installation, I have downloaded NoSqlBooster
and have connected to Mongo server using localhost.
I have created a database named RIPE
and have also added some collections and test documents. At this point, I have also created some read users for RIPE
so that I can share read user credentials with my colleagues for them to use it. I do not want them to make changes so just want to give them read access. Below is the screenshot
My first question is, I have added ttread
user in RIPE
db which we can see in above image but why its showing it outside of RIPE
db as well?
My 2nd question is, how can I make users to directly connect to RIPE
db. In nosqlbooster, when I am connecting to localhost, I have mentioned AuthDB
as RIPE
as shown below:
and when it connects it shows other db as well like, admin
, config
, local
.
Last question, while setting up the mongodb how can I add a username and password because any user can connect to localhost without username and password. So what is the best way to setup security.
Thanks