The keyfile should have chmod 400 permission And the directory where it resides should be owned by mongod