How to create /etc/exports in Mojave Im trying to start my vagrant environment on the new macOS mojave getting an error:  

tee: /etc/exports: Operation not permitted
tee: /etc/exports: Operation not permitted
tee: /etc/exports: Operation not permitted
The nfsd service does not appear to be running.


On previous versions /etc/exports exists, but not in mojave, why? I cant start my virtual environment :(

I also tried to make a find on "exports" to see if is in other location but nothing was found, this file is renamed in this version?
I just had a similar issue and resolved it by:


going to System Preferences > Security &amp; Privacy > Privacy.
Click the "lock" icon to make changes.
Scroll down the list on the left-hand side and select "Full Disk Access"
Click the "+" icon on the right and select the Terminal app (or in
my case iTerm)


You'll now be prompted to close the app if it's already open, restart it, and on next run you'll be asked if you want to allow the app to make changes - grant the permissions and you should be back up and running.