Mount NFS error in Mac OS [How to Solve]

Data and Layout Files

NFS service


Install apt install nfs-kernel-server

Server-side Layout File

cat /etc/exports


CentOS try to load

yum install nfs-utils -y

mount -t nfs -o rw /tmp/test

Ubuntu Try to load

apt install nfs-common -y

mount -t nfs -o rw /tmp/test

Mac OS Hang Characters

used banned commands

mount -t nfs -o rw /tmp/test

Use finder

finder -> before — Link service…”. Enter the window you open.” nfs:// ”

Question weight 1

(/etc/exports) This layout file needs 39035;, to add an insecure parameter, if Mac OS has been rewarded without service error


Problem point 2

there is a problem in setting permissions due to the inconsistency between the Mac OS user ID and the server ID. you cannot write.


you can directly Chmod 777/nfsdata. This method is very violent

create a user with the same uid as the one in the MAC on the server, and then set additional permissions.

view your uid on the MAC ID


uid=501(makeit) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore

NFS server

#Specify the uid when creating a new user
useradd -u 501 makeit
#Configure additional permissions for shared directories
#chfacl may not be available in ubuntu, you need to install it yourself `apt install acl -y`
chfacl -m makeit:rwx -R /nfsdata
# If you already have the user, you can use usermod to change the user information
usermod -u 501 makeit

Find failed events in lookup.

enjoy 😯


Similar Posts: