Context

I recently upgraded to MacOS Mojave.

 

Problem

When I ran vagrant up for an existing site (but was new to my machine) I got an error message after entering my password:

tee: /etc/exports: Operation not permitted

mount.nfs: requested NFS version or transport protocol is not supported

There was actually more to the error but these were the two key things I saved.

 

Solution

So easy. We got lucky on this one.

Add iTerm / Terminal to the allowed apps in Settings > Security & Privacy > Privacy > Full Disk Access.

 

Thanks Ruid Kamphius!

tee: /etc/exports: Operation not permitted mount.nfs: requested NFS version or transport protocol is not supported