How to nfs mount from a windows client with a different userid

Document created by wade on Feb 27, 2016
Version 1Show Document
  • View in full screen mode

Author: Kevin Wong, last modified by Takeshi Matsukura on February 25, 2015


Original Publication Date: February 17, 2015


How to connect to NFS using Windows Server 2008 without using User Mapping Server

Prerequisite is to have your NFS client enabled as a feature on the windows client. Windows 7 or Windows 2008 follow these steps to enable the role -

Install NFS Client

Step 1. Enable File Services Role. Go to Server Management – > Add Roles -> File Services

Step 2. Install Services for Network File System. Go to File Services – > Add Role Services


Update NFS Client Registry

If you already have your NFS client running follow the steps below to add 2 DWORD (32 bit) for the UID and GID from your cluster.

We are going to map the anonymous user credential to the unix account credential used to connect to the MapR NFS share. First you need to get the User Id and Group Id of the unix account from your unix administrator if you do not know them. It should look similar to values like: mapr=2000 mapr=2000 (group)  proceed.

1. Open Regedit.

2. Go to \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default.

3. Create 2 DWORD value, one for AnonymousUid with decimal value=<User Id> and another for AnonymousGid with decimal value=<GroupId>.

4.  After you are done with the registry restart the NFS Client. Go to Administrative Tools -> Services for Network File System


Test NFS Connection

1. Open command prompt.

2. Type:  mount —o nolock u:<UserName> -p:<Password> \\<nfs-node>\mapr <drive letter to mount, Ex: Z:> Here we are mounting to the default /mapr export

3. dir Z:

1 person found this helpful