You have to make sure that all directories specified in your configuration file are writable by the user with which you run mongod.