a guest Feb 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 1. On Windows 7: (You must be running Windows 7 Ultimate/Pro or Windows 10 Pro/Enterprise which supports Client for NFS)
- 2. Install "Client for NFS" feature (Control Panel / Programs and Features / Services for NFS / Client for NFS)
- 3. Disable Windows Firewall or other local firewall (open all required ports later)
- 4. Use "Regedit" and add anonymous UID and GID to 1000 (or whatever user ID you want to have access on Linux-server)
- HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefaultAnonymousGid (new DWORD 32)
- HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefaultAnonymousUid (new DWORD 32)
- 5. Reboot (or restart NFS Client from CMD line)
- nfsadmin client stop
- nfsadmin client start
- 6. If you get Error 53, the you must change the Network Priority order so that Client for NFS network provider is ABOVE the regular Windows Network provider (so NFS gets tried first; otherwise, you'll get prompted when trying to make connections and get Error 53, which will waste a LOT of your time as it did mine): answers.microsoft.com/…/49acc0b0-89e5-4ee0-b30f-a8fe26e8f367
- - Go network adapters and press Alt-key and select Advanced Settings
- 7. (then reboot)
- 8. Go to your linux server. You may disable versions of NFS by editing /etc/default/nfs-kernel-server.
- - This would disable NFSv3.
- RPCMOUNTDOPTS="--manage-gids --no-nfs-version 3"
- - Restart the appropriate services to ensure the changes take effect.
- sudo systemctl restart nfs-config
- sudo systemctl restart nfs-kernel-server
- You can grep on rpc.mountd on your server to verify that your configuration is being used.
- $ ps ax | grep rpc.mountd
- 9. mount -o anon serverip:/folder Z:
RAW Paste Data