Hi, I was continuously denied pemission to create openssl key file from the terminal.
Searched the problem in the forum and got the following commands to run
sudo rm -r /var/mongodb
sudo mkdir -p /var/mongodb/pki/
sudo chown vagrant:vagrant /var/mongodb/pki/
openssl rand -base64 741 > /var/mongodb/pki/m103-keyfile
chmod 400 /var/mongodb/pki/m103-keyfile
ls -l /var/mongodb/pki
ls -l /var/mongodb
and the problem still persist.
However, while following the given steps I ran into a new error saying
“chown: invalid user: ‘vagrant:vagrant’”
here is the screenshot of the terminal.