How to Setup NFS Server on Mac

1.Open terminal on your mac and edit exports file:

sudo nano /etc/exports

2. Edit the file to add the share folder:

 /LocalSharedFolderPath -mapall=ID -alldirs

ID is your account ID, you can just type”id” in terminal to find out

3. Check if the exports file is correct:

sudo nfsd checkexports

4. If nothing showed up with that command, it means success. then you can start enable NFS service:

sudo nfsd enable

5. Check if NFS has been setup correctly:

showmount -e

If you see the following word and with the shared path, then it is good. If you only see the following word, then it means failed 🙁

Exports list on localhost:

Leave a Comment