i tried to build a replicaset for 3 nodes on the same VM machine. when i started one instance with the mongod command, the mongod program permission changed from 777 to 666 immediately, hence another mongod command to start a new instance failed with the permission denied error. and the permission of mongod can not change during the process is running…
LOG: since instance is not up, no system log generated.
Permission: -rw-rw-rw- 1 vagrant vagrant 60327384 Nov 13 02:48 mongod
vagrant@m312:/shared/mongodb/bin$ ./mongod -f /home/vagrant/config_file/secondary_node2.conf
-bash: ./mongod: Permission denied
may it know what’s the solution for this? Thanks a lot.