I have created a three members replicaSet (in separated servers) following the tutorial on mongodb site.
I have configure in /etc/mongodb.conf the following:
fork=true
keyFile=/srv/mongodb/keyFile
And I have create the keyFile in that location and the server always told me "permissions are too open" in keyFile
What can be wrong?
Thanks in advance
From the docs:
The key file must not have group or “world” permissions on UNIX systems
Therefore if you run this, you should be fine (substitute actual path):
chmod 600 /path/to/keyfile
You should also make sure that the keyfile is owned by the same user that you use to run the mongod/mongos processes, otherwise setting the permissions above will cause an error (only the user that owns the file can access it with 600 permissions).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With