HOWTO Access NFS via SFU
From Gentoo Linux Wiki
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
this is for client not server
Contents |
[edit] Introduction
So you have a Gentoo box on a network with other *nix systems. The prefered method of networking with these systems is with NFS. Then there's that lone Windows box wanting it's piece of the action. You could always install Samba on one of *nix systems and route it through to the rest of them. OR you could use Windows Services for Unix (SFU). Sounds simple enough, right? Wrong, Microsoft makes sure that accessing an NFS share from your Windows workstation is anything but simple. So here's what you do....
[edit] Assumptions
This guide is to aid with connecting a Windows workstation to an already established NFS network. If you haven't established an NFS network read this page first. Setup for your NFS network won't require any extra configurations to work with SFU. There are many different ways to configure SFU, my method is merely the most basic.
[edit] Download
Microsoft provides a link for the download at: http://www.microsoft.com/technet/interopmigration/unix/sfu/default.mspx
[edit] Install
Run SfuSetup. When prompted for the domain let it use it's default name. Select the option to use passwd and group files when prompted. Also select user name mapping when prompted. Let the rest of the install continue with it's default options.
[edit] Configure
Run the Services For UNIX Administration utility from the Windows Services for UNIX group in the Start menu.
[edit] Name Network Computer
Under the Services For UNIX[local] section click on the Settings tab. Change the computer name from localhost to whatever you want the Linux system to see it as.
- NOTE: At least on SFU v3.5 the only field in the Settings tab is named User Name Mapping Server. For the setup described here, you MUST leave this as localhost, since this field tells SFU where to look for translation of windows usernames to Unix/Linux UIDs/GIDs. Unless you have a User Name Mapping Server set up on another machine (which is not the case of this How-To), this field should point to localhost. Otherwise, SFU won't find any UID/GID translation for the windows usernames and will try to connect to your NFS server with a "guest" account (UID -2/GID -2), which (at least in my case, running rpc.nfsd on opensuse 10.2 x86_64) will be denied by the NFS server (with a error message on its logs stating it couldn't find UID -2)! -- Anderson Luiz Perazzoli (anderson at agropel.com.br), 22/06/2007
[edit] Copy over passwd and group files
Copy your passwd and group files (from /etc/passwd and /etc/group) to your root Windows drive (C:\). Under the User Name Mapping section browse and select your passwd and group files (be sure Use Password and Group files is selected first).
[edit] Start User Name Mapping and map users
Right click the User Name Mapping section and select Start. Click the Maps tab under the User Name Mapping section. Click Apply to auto generate a map. Click Show User Maps then click List Windows Users and List Unix Users. Select the Windows user from the Windows users list then select the Unix user from the UNIX users list and click Add. This will map your Windows account to your Linux account. Now click Show Group Maps. Map the appropriate Windows group to the appropriate Unix group. For example if your user is an Aministrator on the Windows system and is of the users group on the Linux system then map Administrators to users. Click Apply
[edit] Map Network Drive
Go to My Network Places and select "Map Network Drive" from the Tools menu. Select a drive letter and click browse. There should now be NFS Network listed in addition to Microsoft Windows Network. Browse to the system with the share (it will be listed under "Default LAN"). Select the share and click OK. You should now have a mapped NFS share on your Windows workstation.
