This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] - Windows NFS Client Setup

Only Admin's or Moderators can move thread's to this sub-forum.
Nobody should start a new thread on this sub-forum.
Anybody can reply to a thread on this sub-forum.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
ldkraemer
Starter
Starter
Posts: 53
Joined: 26 Jun 2012 22:35
Status: Offline

[HOWTO] - Windows NFS Client Setup

Post by ldkraemer »

[HOWTO] - Setup Windows NFS Client for NFS Server access

NFS is native to Linux/Unix, but third party software is required for Windows. (Windows does Support NFS with Services for Unix.)

The important part to understand is the syntax for a share

Code: Select all

yourserver:/data
Once you have the nfs server and some shares set up, make a note of the syntax needed to access them from a remote box.
You will need these later. You can use a dns name or the IP address.

You may also need the username and password for your server.

QUICK INSTALL OF SFU:

Fire up your Windows XP box, and download the installer for “Windows Services for Unix”, currently at version 3.5, from this page:

http://www.microsoft.com/technet/intero ... fault.mspx


This is @ 200mb file. You will end up with a file called SFU35SEL_EN.exe.

Double click to unzip this file, it should upzip into your username’s Temp folder, something like C:\Documents and Settings\”yourusername”\Local settings\Temp.
Seek out the setup.exe file and double click. Click through the installer process, as much as you might hate to, accept the licence agreement, and the standard installation option, and without changing any other settings until you reach the mapping page.Tick the radio button in the upper part of the window (Remote User
Name Mapping Server) and then enter your server name or IP address in the box. Click OK and finish the installation process. Windows may offer you a restart,
which you should take up.If it doesn’t, do a reboot anyway. The NFS Client should automatically be started on boot up.

ALTERNATE INSTALL OF SFU: – THANKS TO bodhi zazen
(overcomes user name issues)

Install SFU

Navigate to C:\Documents and Settings\”yourusername”\Local Settings\Temp

Double Click on Sfusetup

* Select Custom Install
* We only need to install :
o NFS -> NFS Client
o Auth Tools for NFS -> User Name Mapping
* Deselect Everything Else

During the next steps accept all defaults

* Default to the Machine’s Domain
* Select passwd and group files
* Select user name mapping

Reboot Windows


Configure SFU

1. From Ubuntu copy /etc/passwd and /etc/groups to C:\

* You can read these files as Text so you may want to eliminate everything from passwd except the log-in names of your Linux users and everything from
groups except users (I did).

2. Launch SFU

Start -> All Programs -> Windows Services for unix -> Services for Unix Administration

3. In the “Client for NFS (On the Left) set the desired permissions of the sharer (I chose rwx for owner and group, nothing for other)

* Click Apply

4. In the “User Name Mapping” (On the Left)

* Select “Use Password and Groups Files” -> Enter C:\passwd and C:\groups in the appropriate boxes

5. Maps Tab

* Select the “Show User Maps” -> Click “Show Windows Users” and “Show Unix Users”
o Select a Windows user and associate it with the appropriate Linux User (one who can normally mount the NFS Share on a Ubuntu Client)
o Click the “Add button”

* Select the “Show Group Maps” -> Click “Show Windows Groups” and “Show Unix Groups”
o I mapped Windows Administrators to Linux Users
o Click the “Add Button”

6. Back to configuration Tab

Click the “Apply” button on the top left Click the “Synchronize Now” button near the bottom

Once Windows is back up, you can start adding NFS network shares. Do this in just the same way as you would add normal network shares in Windows.
From File Explorer, select “Tools” and then “Map Network Drive”. In the dialog, type the server/share address in the following format:

Code: Select all

yourserver:/data
using the correct name or IP address for your server, and the correct path to your share. Remember the colon ( : ) !! Tick the Reconnect at Logon so that your
shares persist through reboots. Windows firewall (or your own firewall) may block NFS Client on reboot, and should offer you the chance to unblock it.

Now, depending on how you have things set up, you may or may not be asked for a username and password. I wasn’t, but this may have been because on the test Windows box I used, I just happened to use the same username and Password as I had on the server. Not had a chance to check this out yet. However, click OK on
any resultant dialogs that pop up, and head back to Explorer to check out your new nfs network share. (In fact, XP opens up a new window for your share).

OK, this is only supposed to work on server editions of Windows (2000, Server 2003, XP Pro) but there is a hack you can do to make the installer work on XP Home Edition ( I haven’t tried it yet) Look here:
http://oreilly.com/pub/h/2883


Copied from a Blog on the Internet - All credit goes to that site and bodhi zazen.
http://www.newitperson.com/2010/12/howt ... indows-xp/

Larry

sacii
Starter
Starter
Posts: 22
Joined: 25 Jun 2012 15:29
Status: Offline

Re: [HOWTO] - Windows NFS Client Setup

Post by sacii »

I have tried this on XP Pro but copying files fails with an error message that the file is locked by another process. Strangely, moving files does not cause an error.

yxcvbn
NewUser
NewUser
Posts: 1
Joined: 21 Jan 2020 17:40
Status: Offline

Re: [HOWTO] - Windows NFS Client Setup

Post by yxcvbn »

Step 5: If I click »Show User Maps« or »Show Group Maps« I get the error: »Unable to acces User Name Mapping server. No maps could be obtained.« Nothing else hapens.

Post Reply

Return to “[HowTo]”