SlideShare une entreprise Scribd logo
1  sur  16
Setting Up An Ubuntu NFS Server
and Windows 7 NFS Client
On the NFS server we run:
Exporting Directories On The Server
I'd like to make the directories /home and /var/nfs accessible to the client;
therefore we must "export" them on the server.
●

●

●

●

When a client accesses an NFS share, this normally happens as the user
nobody. Usually the /home directory isn't owned by
nobody (and I don't recommend to change its ownership to nobody!), and
because we want to read and write on /home, we tell
NFS that accesses should be made as root (if our /home share was readonly, this wouldn't be necessary). The /var/nfs
directory doesn't exist, so we can create it and change its ownership to
nobody and nogroup:
Now we must modify /etc/exports where we
"export" our NFS shares. We specify /home and
/var/nfs as NFS shares and tell
●

NFS to make accesses to /home as root (to learn
more about /etc/exports, its format and available
options, take a look at
Windows 7: Client for NFS and User
Name Mapping without AD, SUA
Windows 7: Client for NFS and User Name Mapping
without AD, SUA
●

●

In this tutorial, Mr. Nguyen Viet Cuong (a.k.a. mrcuongnv)
shows us how to mount a NFS share on Windows 7 with
Client for NFS without using neither Active Directory server
nor SUA (Subsystem for UNIX-based Application).
You can visit Mr. Nguyen Viet Cuong´s site at
http://blog.cuongnv.com/2009/11/windows-7-client-for-nfsand-user-name.html.
Important: Client for NFS feature is only available
on Windows 7 Ultimate Edition and Enterprise
Edition.
The Client for NFS is included in the Windows 7,
however, it is turned off by default. One can turn it
on by accessControl Panel → Programs →
Programs and Features → Turn Windows features
on or off.
- Now, you can mount any NFS share on your network. However, if you try to open
the mounted drive, you are most probable to receive an "Access is denied"
notification. The reason is Windows and UNIX use different mechanisms for user
identification, authentication, and resource access control.
- The mechanism of identifying an user on the Windows-based system is different
from the Unix-based system, which uses User Identification (UID) and Group
Identification (GID). Therefore, to access resources on an Unix-based system from a
Windows-based system and vice versa, we have to map user information between
Windows-based system and Unix-based system.
The most popular solutions are using an Active
Directory for mapping user identification or using
SUA. However, that is too complicated for a small
environment, such as home or small office. For
example, in my case, I have two Ubuntu boxes, one
Windows box in the office, and one Windows box in
my dormitory room. NFS server is running on one
of my Ubuntu boxes.
By googling, I have found an un-documented trick to set the "default" anonymous UID and GID
for Client for NFS to access a NFS share. Now, you can do it as follows:
●
●
●

●

●
●

●
●

Open the Run box by pressing Windows + R.
Start Registry Editor by running command regedit. Remember to click the Yes button on the
User Account Control window.
Locate
HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefault.
Add two DWORD values: AnonymousUid and AnonymousGid.
Set theses values to the UID and GID on the Ubuntu box. In the most popular cases, they are
1000 and1000 in decimal base. Actually, it should be the UID and GID of the owner of the
shared directory on the Ubuntu system.
Restart your Client for NFS service or restart your computer.
Now, you can access Ubuntu box's NFS share from
your Windows box.
On the Ubuntu, I want to share the home directory
of the user cuongnv /home/cuongnv. The owner UID
iscuongnv (1000), and the owner GID is also
cuongnv (1000). I assume that you know how to
install NFS service on the Ubuntu (actually, you
only need to install two package: portmap and nfskernel-server). My Ubuntu box's IP is192.168.0.10,
and I want to share above directory to all the
computers in my network 192.168.0.0/24.
Now, on the Ubuntu box, you add the following line
to the file /etc/exports:
Then, you need to run command exports -ra. Final,
restart portmap service and nfs-kernel-server service.
On the Windows 7:
Open Computer (or press Windows + E).
Click the Map netwok drive button on the toolbar.
Enter 192.168.0.10:/var/nfs on the Folder text box.
Click Finish
Good Luck All nob jub jub

Contenu connexe

Tendances

Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In Practice
Qasim Khawaja
 
Development box at Startit Tech Meetup
Development box at Startit Tech MeetupDevelopment box at Startit Tech Meetup
Development box at Startit Tech Meetup
Startit
 
Unix cmd on_free_bsd
Unix cmd on_free_bsdUnix cmd on_free_bsd
Unix cmd on_free_bsd
小均 張
 

Tendances (20)

Macros code for Protecting and Unprotecting Sheets
Macros code for Protecting and Unprotecting SheetsMacros code for Protecting and Unprotecting Sheets
Macros code for Protecting and Unprotecting Sheets
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In Practice
 
Development box at Startit Tech Meetup
Development box at Startit Tech MeetupDevelopment box at Startit Tech Meetup
Development box at Startit Tech Meetup
 
Basic
BasicBasic
Basic
 
Unix cmd on_free_bsd
Unix cmd on_free_bsdUnix cmd on_free_bsd
Unix cmd on_free_bsd
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system concept
 
Linux for Beginners
Linux for  BeginnersLinux for  Beginners
Linux for Beginners
 
Unix environment [autosaved]
Unix environment [autosaved]Unix environment [autosaved]
Unix environment [autosaved]
 
Unix environment
Unix environmentUnix environment
Unix environment
 
MS-DOS
MS-DOSMS-DOS
MS-DOS
 
Bento lunch talk
Bento   lunch talkBento   lunch talk
Bento lunch talk
 
Joy of Unix
Joy of UnixJoy of Unix
Joy of Unix
 
Linux Basic commands and VI Editor
Linux Basic commands and VI EditorLinux Basic commands and VI Editor
Linux Basic commands and VI Editor
 
Ms dos commands for Multimedia Students and Facultyes
Ms dos commands  for Multimedia Students and FacultyesMs dos commands  for Multimedia Students and Facultyes
Ms dos commands for Multimedia Students and Facultyes
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partI
 
Using The Unix Command Line
Using The Unix Command LineUsing The Unix Command Line
Using The Unix Command Line
 
JavaZone 2015: Mine containere er lettere enn dine.
JavaZone 2015: Mine containere er lettere enn dine.JavaZone 2015: Mine containere er lettere enn dine.
JavaZone 2015: Mine containere er lettere enn dine.
 

En vedette

Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013
Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013
Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013
ICEEFEST2013
 
Npss program slideshow
Npss program slideshowNpss program slideshow
Npss program slideshow
Andre Vogel
 
Temporary Employee Orientation
Temporary Employee OrientationTemporary Employee Orientation
Temporary Employee Orientation
CityOfPrescott
 
Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013
Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013
Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013
ICEEFEST2013
 
Has the internet made everything shit? by Chris clarke at ICEEFEST 2013
Has the internet made everything shit? by Chris clarke at ICEEFEST 2013Has the internet made everything shit? by Chris clarke at ICEEFEST 2013
Has the internet made everything shit? by Chris clarke at ICEEFEST 2013
ICEEFEST2013
 
Take your favorite stories with you - an innovation driven by emotions
Take your favorite stories with you - an innovation driven by emotionsTake your favorite stories with you - an innovation driven by emotions
Take your favorite stories with you - an innovation driven by emotions
ICEEFEST2013
 
Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013
Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013
Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013
ICEEFEST2013
 
Innovating from the trenches
Innovating from the trenchesInnovating from the trenches
Innovating from the trenches
ICEEFEST2013
 
Discussion Regarding Land Development Code Amendments for Group Residential Uses
Discussion Regarding Land Development Code Amendments for Group Residential UsesDiscussion Regarding Land Development Code Amendments for Group Residential Uses
Discussion Regarding Land Development Code Amendments for Group Residential Uses
CityOfPrescott
 
Hacking the human operating system: using digital to influence consumers deci...
Hacking the human operating system: using digital to influence consumers deci...Hacking the human operating system: using digital to influence consumers deci...
Hacking the human operating system: using digital to influence consumers deci...
ICEEFEST2013
 
Social networking
Social networkingSocial networking
Social networking
briscoe4
 
Performance marketing on facebook- your company's growth engine by Serhad Bol...
Performance marketing on facebook- your company's growth engine by Serhad Bol...Performance marketing on facebook- your company's growth engine by Serhad Bol...
Performance marketing on facebook- your company's growth engine by Serhad Bol...
ICEEFEST2013
 
Mega image case study by Adrian alexandrescu @ All things Facebook
Mega image case study by Adrian alexandrescu @ All things FacebookMega image case study by Adrian alexandrescu @ All things Facebook
Mega image case study by Adrian alexandrescu @ All things Facebook
ICEEFEST2013
 
It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013
It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013
It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013
ICEEFEST2013
 
Connecting Orange on social media by Thomas penet at ICEEFEST 2013
Connecting Orange on social media by Thomas penet at ICEEFEST 2013Connecting Orange on social media by Thomas penet at ICEEFEST 2013
Connecting Orange on social media by Thomas penet at ICEEFEST 2013
ICEEFEST2013
 

En vedette (20)

Ubuntu manual
Ubuntu manualUbuntu manual
Ubuntu manual
 
Fotos de laurent_schwebel1-1
Fotos de laurent_schwebel1-1Fotos de laurent_schwebel1-1
Fotos de laurent_schwebel1-1
 
Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013
Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013
Visual social media, social photography and video by Dirk Singer @ ICEEfest 2013
 
Npss program slideshow
Npss program slideshowNpss program slideshow
Npss program slideshow
 
Temporary Employee Orientation
Temporary Employee OrientationTemporary Employee Orientation
Temporary Employee Orientation
 
Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013
Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013
Shaping the digital landscape by Kimon Zorbas @ ICEEfest 2013
 
Bacolod tourist attraction summary
Bacolod tourist attraction summaryBacolod tourist attraction summary
Bacolod tourist attraction summary
 
Has the internet made everything shit? by Chris clarke at ICEEFEST 2013
Has the internet made everything shit? by Chris clarke at ICEEFEST 2013Has the internet made everything shit? by Chris clarke at ICEEFEST 2013
Has the internet made everything shit? by Chris clarke at ICEEFEST 2013
 
2016 CES and NAIAS
2016 CES and NAIAS2016 CES and NAIAS
2016 CES and NAIAS
 
Take your favorite stories with you - an innovation driven by emotions
Take your favorite stories with you - an innovation driven by emotionsTake your favorite stories with you - an innovation driven by emotions
Take your favorite stories with you - an innovation driven by emotions
 
Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013
Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013
Entertaining the world, BBC WORLD by Vincent Sider at ICEEFETS 2013
 
Innovating from the trenches
Innovating from the trenchesInnovating from the trenches
Innovating from the trenches
 
Discussion Regarding Land Development Code Amendments for Group Residential Uses
Discussion Regarding Land Development Code Amendments for Group Residential UsesDiscussion Regarding Land Development Code Amendments for Group Residential Uses
Discussion Regarding Land Development Code Amendments for Group Residential Uses
 
MR Images for Animal Referral
MR Images for Animal ReferralMR Images for Animal Referral
MR Images for Animal Referral
 
Hacking the human operating system: using digital to influence consumers deci...
Hacking the human operating system: using digital to influence consumers deci...Hacking the human operating system: using digital to influence consumers deci...
Hacking the human operating system: using digital to influence consumers deci...
 
Social networking
Social networkingSocial networking
Social networking
 
Performance marketing on facebook- your company's growth engine by Serhad Bol...
Performance marketing on facebook- your company's growth engine by Serhad Bol...Performance marketing on facebook- your company's growth engine by Serhad Bol...
Performance marketing on facebook- your company's growth engine by Serhad Bol...
 
Mega image case study by Adrian alexandrescu @ All things Facebook
Mega image case study by Adrian alexandrescu @ All things FacebookMega image case study by Adrian alexandrescu @ All things Facebook
Mega image case study by Adrian alexandrescu @ All things Facebook
 
It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013
It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013
It's a new commerce, not just payments by Damien Perillat @ ICEEfest 2013
 
Connecting Orange on social media by Thomas penet at ICEEFEST 2013
Connecting Orange on social media by Thomas penet at ICEEFEST 2013Connecting Orange on social media by Thomas penet at ICEEFEST 2013
Connecting Orange on social media by Thomas penet at ICEEFEST 2013
 

Similaire à NFS ubuntu Server and windows 7 Client

Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
badamisri
 
Lamp1
Lamp1Lamp1
Lamp1
Reka
 
Lamp
LampLamp
Lamp
Reka
 

Similaire à NFS ubuntu Server and windows 7 Client (20)

Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Lamp1
Lamp1Lamp1
Lamp1
 
Lamp1
Lamp1Lamp1
Lamp1
 
Lamp
LampLamp
Lamp
 
Linux
LinuxLinux
Linux
 
FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Linux basic
Linux basicLinux basic
Linux basic
 
Edubooktraining
EdubooktrainingEdubooktraining
Edubooktraining
 
System administration
System administrationSystem administration
System administration
 
Linux
Linux Linux
Linux
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
 
Linux
Linux Linux
Linux
 
Guide to open suse 13.2 by mustafa rasheed abass & abdullah t. tua'ama..super...
Guide to open suse 13.2 by mustafa rasheed abass & abdullah t. tua'ama..super...Guide to open suse 13.2 by mustafa rasheed abass & abdullah t. tua'ama..super...
Guide to open suse 13.2 by mustafa rasheed abass & abdullah t. tua'ama..super...
 
Divya
DivyaDivya
Divya
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Dernier (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

NFS ubuntu Server and windows 7 Client

  • 1. Setting Up An Ubuntu NFS Server and Windows 7 NFS Client On the NFS server we run:
  • 2. Exporting Directories On The Server I'd like to make the directories /home and /var/nfs accessible to the client; therefore we must "export" them on the server. ● ● ● ● When a client accesses an NFS share, this normally happens as the user nobody. Usually the /home directory isn't owned by nobody (and I don't recommend to change its ownership to nobody!), and because we want to read and write on /home, we tell NFS that accesses should be made as root (if our /home share was readonly, this wouldn't be necessary). The /var/nfs directory doesn't exist, so we can create it and change its ownership to nobody and nogroup:
  • 3. Now we must modify /etc/exports where we "export" our NFS shares. We specify /home and /var/nfs as NFS shares and tell ● NFS to make accesses to /home as root (to learn more about /etc/exports, its format and available options, take a look at
  • 4.
  • 5. Windows 7: Client for NFS and User Name Mapping without AD, SUA Windows 7: Client for NFS and User Name Mapping without AD, SUA ● ● In this tutorial, Mr. Nguyen Viet Cuong (a.k.a. mrcuongnv) shows us how to mount a NFS share on Windows 7 with Client for NFS without using neither Active Directory server nor SUA (Subsystem for UNIX-based Application). You can visit Mr. Nguyen Viet Cuong´s site at http://blog.cuongnv.com/2009/11/windows-7-client-for-nfsand-user-name.html.
  • 6. Important: Client for NFS feature is only available on Windows 7 Ultimate Edition and Enterprise Edition. The Client for NFS is included in the Windows 7, however, it is turned off by default. One can turn it on by accessControl Panel → Programs → Programs and Features → Turn Windows features on or off.
  • 7.
  • 8. - Now, you can mount any NFS share on your network. However, if you try to open the mounted drive, you are most probable to receive an "Access is denied" notification. The reason is Windows and UNIX use different mechanisms for user identification, authentication, and resource access control. - The mechanism of identifying an user on the Windows-based system is different from the Unix-based system, which uses User Identification (UID) and Group Identification (GID). Therefore, to access resources on an Unix-based system from a Windows-based system and vice versa, we have to map user information between Windows-based system and Unix-based system.
  • 9. The most popular solutions are using an Active Directory for mapping user identification or using SUA. However, that is too complicated for a small environment, such as home or small office. For example, in my case, I have two Ubuntu boxes, one Windows box in the office, and one Windows box in my dormitory room. NFS server is running on one of my Ubuntu boxes.
  • 10. By googling, I have found an un-documented trick to set the "default" anonymous UID and GID for Client for NFS to access a NFS share. Now, you can do it as follows: ● ● ● ● ● ● ● ● Open the Run box by pressing Windows + R. Start Registry Editor by running command regedit. Remember to click the Yes button on the User Account Control window. Locate HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFSCurrentVersionDefault. Add two DWORD values: AnonymousUid and AnonymousGid. Set theses values to the UID and GID on the Ubuntu box. In the most popular cases, they are 1000 and1000 in decimal base. Actually, it should be the UID and GID of the owner of the shared directory on the Ubuntu system. Restart your Client for NFS service or restart your computer.
  • 11. Now, you can access Ubuntu box's NFS share from your Windows box.
  • 12. On the Ubuntu, I want to share the home directory of the user cuongnv /home/cuongnv. The owner UID iscuongnv (1000), and the owner GID is also cuongnv (1000). I assume that you know how to install NFS service on the Ubuntu (actually, you only need to install two package: portmap and nfskernel-server). My Ubuntu box's IP is192.168.0.10, and I want to share above directory to all the computers in my network 192.168.0.0/24.
  • 13. Now, on the Ubuntu box, you add the following line to the file /etc/exports:
  • 14. Then, you need to run command exports -ra. Final, restart portmap service and nfs-kernel-server service. On the Windows 7: Open Computer (or press Windows + E). Click the Map netwok drive button on the toolbar. Enter 192.168.0.10:/var/nfs on the Folder text box. Click Finish
  • 15.
  • 16. Good Luck All nob jub jub