When creating a database account for a specified DB instance, you are advised to enable the SSL connection to improve data security.
To manage DDS DB instances, users root, monitor, and backup are automatically created when you create a DDS DB instance. Attempting to delete, rename, change the passwords, or change privileges for these accounts will result in errors.
You can change the password of the database administrator rwuser and any accounts you create.
When you create a DB instance, DDS automatically checks your password strength. You can change the password as user rwuser. For security reasons, you are advised to set up a strong password.
use admin
db.createUser({user: "user1", pwd: "**********", passwordDigestor:"server", roles:[{role: "root", db: "admin"}]})
The account is successfully created if the following information is displayed:
Successfully added user: {
"user" : "user1",
"passwordDigestor" : "server",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
]
}
use admin
db.updateUser("user1", {passwordDigestor:"server",pwd:"**********"})
server: indicates that the password is encrypted on the server.
mongos>
replica:PRIMARY>
replica:PRIMARY>