Answer the question
In order to leave comments, you need to log in
Why does mongo allow you to login without authentication data?
I'm trying to create a super user with top privileges:
>db.system.users.find().pretty()
{
"_id" : ObjectId("533aa7175572233602378633"),
"user" : "root",
"pwd" : "06dbc97127a71ab5b359a6a6e9ff5f53",
"roles" : [
"readWrite",
"userAdmin",
"dbAdmin",
"readWriteAnyDatabase",
"userAdminAnyDatabase",
"dbAdminAnyDatabase"
]
}
mongo some_db -u root -p 5415
- ok! mongo some_db -u root -p 54153
- error! mongo some_db
- ok! Why does mongo allow login even in this case? auth = true
installed in the config.
Answer the question
In order to leave comments, you need to log in
ok! Why does mongo allow logins, even in this case?There is a login to the console, but the data is not available, then you need to log in via db.auth()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question