Tuesday, 15 May 2012

Mongodb KeyFile too open permissions -



Mongodb KeyFile too open permissions -

i have created 3 members replicaset (in separated servers) next tutorial on mongodb site.

i have configure in /etc/mongodb.conf following:

fork=true

keyfile=/srv/mongodb/keyfile

and have create keyfile in location , server told me "permissions open" in keyfile

what can wrong?

thanks in advance

from the docs:

the key file must not have grouping or “world” permissions on unix systems

therefore if run this, should fine (substitute actual path):

chmod 600 /path/to/keyfile

you should create sure keyfile owned same user utilize run mongod/mongos processes, otherwise setting permissions above cause error (only user owns file can access 600 permissions).

mongodb permissions

No comments:

Post a Comment