###### tags: `廣達` # Azure VM as NFS Server ## Server - 環境配置 (ADDS, DNS, NFS) - ADDS + DNS - NFS - 防火牆設定 - 權限配置 ## Client - 要 access NFS 的 client 端要做 AD domain join,要先將 VM 的 DNS server 指向 AD server 的 IP - 查詢 user uid 及 gid ```.sh id fosslinux_admin ``` - 添加檔案 ``` echo -e "Hello World! \nThis is whereiswhere" >> abc.txt ``` - “mount.nfs: access denied by server while mounting” – how to resolve ![](https://i.imgur.com/aubtjso.png) - 檢查 ```.sh sudo ount -t nfs -vvvv 14.0.0.5:/nfsshare data ``` - Try mounting with NFSv3 ```.sh sudo mount -t nfs -o nfsvers=3 -vvv 14.0.0.5:/nfsshare data ``` ![](https://i.imgur.com/ZVjtU3e.png) ## Resource [Mount NFS Access Denied Issue](https://www.thegeekdiary.com/mount-nfs-access-denied-by-server-while-mounting-how-to-resolve/) [在 Window 下配置 NFS](https://www.itread01.com/content/1547072463.html)