daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. On Windows 7:  (You must be running Windows 7 Ultimate/Pro or Windows 10 Pro/Enterprise which supports Client for NFS)
  2. 2. Install "Client for NFS" feature (Control Panel / Programs and Features / Services for NFS / Client for NFS)
  3. 3. Disable Windows Firewall or other local firewall (open all required ports later)
  4. 4. Use "Regedit" and add anonymous UID and GID to 1000 (or whatever user ID you want to have access on Linux-server)
  5. ```
  6. HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefaultAnonymousGid  (new DWORD 32)
  7. HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefaultAnonymousUid  (new DWORD 32)
  8. ```
  9. 5. Reboot (or restart NFS Client from CMD line)
  10. ```
  11. nfsadmin client stop
  12. nfsadmin client start
  13. ```
  14. 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
  15. - Go network adapters and press Alt-key and select Advanced Settings
  16. 7. (then reboot)
  17. 8. Go to your linux server. You may disable versions of NFS by editing /etc/default/nfs-kernel-server.
  18. - This would disable NFSv3.
  19. ```
  20. RPCMOUNTDOPTS="--manage-gids --no-nfs-version 3"
  21. ```
  22. - Restart the appropriate services to ensure the changes take effect.
  23. ```
  24. sudo systemctl restart nfs-config
  25. sudo systemctl restart nfs-kernel-server
  26. ```
  27. You can grep on rpc.mountd on your server to verify that your configuration is being used.
  28. ```
  29. $ ps ax | grep rpc.mountd
  30. ```
  31. 9. mount -o anon serverip:/folder Z:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top