chapter 1 lab says:
Using what you know about the configuration file and Linux user groups, please complete the following:
- create a new folder /var/mongodb/db/ and allow mongod to write files to this directory
- create this directory with sudo, because /var is owned by root
- use chown to change the owner of this directory to vagrant:vagrant
- edit your config file to use this new directory as the dbpath
I’ve wasted 90 minutes on this and got nowhere. I really want to learn mongo not the OS terminal.
Can someone advise how to change the permissions for /var/mongodb/db/ as per the instructions.
Additional info: I use sudo -s prior to trying to set the permissions. I get an error saying illegal group name