I edited the MongoDB config file to store it's data in /home/user/data/mongod
.
But data is still written to the old directory, supposedly because the permissions to the new folder are not granted - how can I give MongoDB the necessary permissions for that directory?