Using Microsoft SFU for accessing NFS exports

In this tutorial, we will explore together and see how easy it is to install and configure Microsoft’s Windows Services For Unix (SFU) which is now already available for free. It provides a Unix subsystem and other parts of a full Unix environment on Windows NT and its successors. The subsystem included is known as Interix.

We will install SFU on a standalone Windows XP and access an exported NFS share on Debian 5. I will provide screenshots

wherever appropriate. So let’s get started.

We will begin with configuring our nfs server.

First, install nfs server

aptitude install aptitude install nfs-kernel-server

After we have the nfs server installed, you need to export the directory by using the /etc/exports file.

I will export my home directory for the purposes of this tutorial, so in /etc/exports, I will just simply put in the following

/home/linuxgravity *(rw,sync,no_subtree_check)

That’s it. That was so easy, isn’t it.

Restart nfs server

/etc/init.d/nfs-kernel-server restart

Now is the time to install and configure SFU. The first obvious step is to download the latest version of SFU (3.5 at this time) from here. Simply double clicking it will easily permit you extract it. Once completed, you would go the extracted directory and launch the SfuSetup. Installation is just like any other Windows application. In the Installation Options window, I will choose Standard Installation as show below:

install_options

The next screen relates to Security Settings. We can choose from two options. For this demonstration, I will just check none. The following screen allows us to select the scheme for mapping Windows users to Linux users. We will use local user mapping and passwd and group files. So we will select, Local User Name Mapping Server and Password and group file in this screen as show.

user_name_mapping

Before clicking Next, lets copy /etc/passwd and /etc/group files to our Windows XP machine using either ftp or winscp. I will place them inside c:\maps.

In the next screen, we just specify the paths for passwd and group files that we copied from our Linux box (NFS server).

passwd_group_location

And that’s it. Before configuring nfs export, we will start User Name Mapping service. So in the properties of User Mapping service in Services, change it to Automatic and start it.

user_name_mapping_service

Now if we go to My Network Places, Entire Network, we will notice a new entry NFS Network which will take us to the exported nfs directory.

My_network_places

At this point, we would have access to the exported directories and files that are world readable. To make file owned by certain users on Linux to users on Windows, we would set up User Mapping.

Open Services for as shown below

services_UNIX_Administration

To create maps, we click on User mapping in the left pane and then Show User Maps under Maps in the right pane

maps_screen

We will map Windows Administrator to Linux root. So under windows user name type in Administrator and under Unix users type root and click Add. Click Apply at the top to save changes.

user_mapping_large

This mapping will allow Administrator to access any files/directories in the nfs exports that user root is allowed to access.


[paypal-donation]

7 Responses to “Using Microsoft SFU for accessing NFS exports”

  1. veterinary technician Says:

    Terrific work! This is the type of information that should be shared around the web. Shame on the search engines for not positioning this post higher!

  2. Wordpress Themes Says:

    Nice fill someone in on and this post helped me alot in my college assignement. Thanks you on your information.

  3. pharmacy technician certification Says:

    My cousin recommended this blog and she was totally right keep up the fantastic work!

  4. Wordpress Themes Says:

    Genial fill someone in on and this enter helped me alot in my college assignement. Thank you for your information.

  5. Wordpress Themes Says:

    Good post and this fill someone in on helped me alot in my college assignement. Thanks you for your information.

  6. diamond jewelry Says:

    When I open up your RSS feed it gives me a page of garbled text, is the problem on my side?

  7. Anders Says:

    First, great information. Must try this at home.

    But some important security notations.

    As you never should login and run normal work under root, you should never run as Administrator in MS Windows. It is a very efficient way of getting viruses and roots on your machine.

    So that’s why you don’t want to allow root access to your NFS shares, as NFS isn’t that hard to fake if someone has are not that hard to crack if you use NFS2 or NFS3. And you will have unknown people in your local net if you have a WLAN access.
    If you use NFS4 with Kerberos, you will get a much better protection with singel sign on and encrypted communication. But then again, I don’t know if SFU support that.

Leave a Reply