服务端:192.168.41.129

chmod /home/common/ 777

[root@localhost ~]# cat /etc/exports 

/home/common 192.168.41.0/24(rw,sync,no_root_squash,anonuid=1004,anongid=1004)

no_root_squash改为all_squash时,挂载后的用户就全是1004对应的shaw,意味着全部用户限定为1004

no_root_squash的意思是限定root之外的所有用户为shaw

客户端:192.168.41.132

[root@localhost ~]# cat /etc/passwd|grep 1004

shaw:x:1004:1004::/home/shaw:/bin/bash