*WindowsからNFSに接続する(アクセス拒否を回避する)

Windows 7はnfsクライアントを持っているのでコンパネから設定を変えるとnfs共有フォルダをマウントできるようになる。

cmd.exeで

mount -o nolock \\192.168.0.1/share *

みたいな感じ。

マウントはすんなりいったがアクセス拒否された。-u:ユーザー名 -p:パスワードを設定してもだめ。

uid、gidが違っているのが問題らしい。

で、解決法。うまくいきました。

参照:ubuntuforums.org/showthread.php?t=1686544

SOLVED!!!!!!!!!!!!!!!!!!!!

You were right it was a permission problem

No matter what I did the uid the mount in windows would use the uid=-2 and gid=-2

I changed the anon user ON THE WINDOWS SIDE

  • Start Registry Editor

  • Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS \CurrentVersion\Default

  • Create two DWORD values namely AnonymousUid and AnonymousGid

  • Set these values to the UID and GID you would like this NFS client to use

  • Restart your Client for NFS service using the Microsoft Services for NFS MMC snap-in

taken from http://blogs.msdn.com/b/sfu/archive/...ows-vista.aspx

i then set the AnonymousUid and AnonymousGid to 0 for root. and BOOM it instantly worked.

*注: DWORD値は10進数で入力でよいと思います。