Setting up Services for UNIX NFS Client

Prerequisites

  • Windows XP Professional
  • Services for UNIX (SFU) 3.5
  • NFS share on Solaris

Procedure

  • Install SFU 3.5 from Microsoft
  • Goto SFU Administration
    • Click "Services for UNIX [ local ]"
    • Set "Computer Name" to localhost
    • Change "Client for NFS" options if necessary (default works for me)
    • Click "User Name Mapping"
    • Select "Use Password and Group files" which bring you to "Configuration" tab.
    • Set "Password file path and name" to c:\sfu\common\passwd (or somewhere else)
    • Set "Group file path and name" to c:\sfu\common\group
    • c:\sfu\common\passwd can be copied from /etc/passwd on the UNIX NFS server. You can delete entries of users you don't need to map. You can do a "cat /etc/passwd | grep ^user > ./passwd" or "ypcat passwd | grep ^user > ./passwd" in a UNIX shell and copy ./passwd to c:\sfu\common\.
    • c:\sfu\common\group can be copied from /etc/group on the UNIX NFS server. You can delete entries of groups you don't need to map. You can do a "cat /etc/group | grep ^group > ./passwd" or "ypcat group | grep ^group > ./group" in a UNIX shell and copy ./group to c:\sfu\common\.
    • Select "Maps" tab
    • Select simple maps.
    • Set "Windows domain name" to \\hostname. Hostname = name of your computer. \\localhost might work as well.
    • Click "Show User Maps". Click "List Windows Users" and "List UNIX Users".
    • Click your windows user name to the left, and your UNIX username to the right, and click "Add".
    • Set up any group maps that you might need in the same way as above. I don't have any, so it is not needed to access your own files.
  • Now you should be able to map a network drive, and use \\nfsserver\path\ to map your NFS share. When clicking "OK" and if it is a NFS share and not a SAMBA share, a window should popup with the mapping of the user ID. This user ID should match your UNIX uid on the NFS server (type "id" in a UNIX shell to get it).