SlideShare a Scribd company logo
NFS is an excellent way of sharing files between Linux and other
UNIX systems
NFS is an great way of distribution files between Linux and other UNIX systems. While
Samba is a great choice due to the unity with Windows, if you're in a Windows-less
environment, NFS may be a exceptional choice.
NFS allows for machines to mount without certification, at boot, which is great if you have a
cluster of systems or if you need to use a integrate home directory system (using an NFS-
mounted directory for home directories to keep your composition and files identical on more
systems).
NFS is also very simple to set up. To begin, you need to install the NFS package, so on
Fedora or Red Hat Enterprise Linux and other same systems, install the nfs-utils package:
# yum install nfs-utils
Next, you will need to edit /etc/exports which is where we describe what filesystems can be casually
accessed. A pattern/etc/exports may look like this:
/srv hosta.domain.com(rw)
hostb.domain.com(ro)
/home 192.168.1.0/255.255.255.0(rw)
What this /etc/exports does is export the /srv directory on the server to the hosta.domain.com computer as
read/write and to hostb.domain.com as read-only. It still exports /home as read/write to other computer in the
192.168.1.0 network (192.168.1.0 being the network address and 255.255.255.0 being the netmask).
There are any options you can supply on a per-host or per-network basis, add the
no_root_squash option which will not restrain root on a customer machine from
writing files to the server as root; by default, NFS will map other appeal from root
on the customer to the 'nobody' client on the server.
Next, analysis/etc/hosts.allow and /etc/hosts.deny. NFS will analysis these files for
access manage to the server. This is especially basic if you are using wildcards or
broad network specifications in /etc/exports; using hosts.allow and hosts.deny you
can fine-tune which customer do and don't have access. For detail, you may
include in /etc/hosts.deny:
and then in /etc/hosts.allow:
This would only allow the hosts specified in /etc/hosts.allow to connect to
the portmap service. You can bring extra fine-grained and also include
entries for lockd, rquotad, mountd, and statd — all other NFS-related
services.
Finally, to start NFS sharing, on the server you need to start a few services:
On newer systems, portmap is possibly deprecated in support of portreserve; in that case you would use
service portreserve start instead.
To see what file systems are exported, use the exportfs command; if you've made modification to /etc/exports,
use exportfs -ra to force NFS to re-read the configuration. To cause assured that NFS is running, use the
rpcinfo command; if it returns a list of services and addresses being listened to, you know it is running.
Finally, if you are running iptables on the server as a firewall, you will need to shift what ports the NFS services listen
to. By default, these are incidental unused ports, with portreserve/portmap letting requesting services know what ports
to attach to. This is a huge difference between NFSv3, where this is true, and NFSv4 which simply uses TCP port
2049, so this mostly depends on which version of NFS you strategy to use or enforce. On Fedora or Red Hat
Enterprise Linux, this can be done by editing /etc/sysconfig/nfs. By default, it's all commented, so the following is what
we need to uncomment and define:
This will effort static ports for the above services. The next step is to open the firewall on these ports, which can be
done by editing /etc/sysconfig/iptables (repeatedly keeping in mind this is on a RHEL system):
# the following are for NFS
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp
—dport 111 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 111 -j ACCEPT
-A
RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 2049 -j ACCEPT
-A RH-Firewall-1-INPUT -s
192.168.1.0/24 -m state —state NEW -p tcp —dport 32803 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state
—state NEW -p udp —dport 32769 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport
892 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 892 -j ACCEPT
-A
RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 875 -j ACCEPT
-A RH-Firewall-1-INPUT -s
192.168.1.0/24 -m state —state NEW -p udp —dport 875 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state
NEW -p tcp —dport 662 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 662 -j
ACCEPT
After these shifting are made, restart the firewall and the NFS services:
At this point, your NFS server is set up and accessible to obtain connections from remote customer, which
can be approved by mounting one of the exported filesystems on the customer:
Call us @ 9988741983
Visit:
Linux training in Chandigarh
NFS is an excellent way of sharing files between linux and other unix systems

More Related Content

What's hot

Nfs
NfsNfs
Rhel3
Rhel3Rhel3
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
tmavroidis
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
Syaiful Ahdan
 
Ftp configuration in rhel7
Ftp configuration in rhel7Ftp configuration in rhel7
Ftp configuration in rhel7
Balamurugan M
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)Raghu nath
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
kuldeepakgautam
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
Syaiful Ahdan
 
IPTables Lab
IPTables LabIPTables Lab
IPTables Lab
Kaan Aslandağ
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
Aryman Gautam
 
Nfs
NfsNfs
Dns centos
Dns centosDns centos
Dns centos
Bung Densol
 
RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)
skalaivanibutp
 
Pxe boot configuration in rhel5
Pxe boot configuration in rhel5Pxe boot configuration in rhel5
Pxe boot configuration in rhel5Kiriti Aryabarta
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2
Trinh Tuan
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
AhmedEidNassef
 
J Ruby On Rails Presentation
J Ruby On Rails PresentationJ Ruby On Rails Presentation
J Ruby On Rails Presentationrailsconf
 

What's hot (20)

Nfs
NfsNfs
Nfs
 
Rhel3
Rhel3Rhel3
Rhel3
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
 
Ftp configuration in rhel7
Ftp configuration in rhel7Ftp configuration in rhel7
Ftp configuration in rhel7
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
 
IPTables Lab
IPTables LabIPTables Lab
IPTables Lab
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
 
Nfs
NfsNfs
Nfs
 
Dns centos
Dns centosDns centos
Dns centos
 
RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)RPM (Red Hat Package Manager)
RPM (Red Hat Package Manager)
 
Pxe boot configuration in rhel5
Pxe boot configuration in rhel5Pxe boot configuration in rhel5
Pxe boot configuration in rhel5
 
Yum (Linux)
Yum (Linux) Yum (Linux)
Yum (Linux)
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
 
J Ruby On Rails Presentation
J Ruby On Rails PresentationJ Ruby On Rails Presentation
J Ruby On Rails Presentation
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
 

Similar to NFS is an excellent way of sharing files between linux and other unix systems

Linux
LinuxLinux
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02
FNian
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
Information Technology
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
badamisri
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
Ajaigururaj R
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
Ftp server
Ftp serverFtp server
Ftp server
pawnbeeta
 
Graphing Nagios services with pnp4nagios
Graphing Nagios services with pnp4nagiosGraphing Nagios services with pnp4nagios
Graphing Nagios services with pnp4nagios
jasonholtzapple
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
abdullah roomi
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
Shashwat Shriparv
 
Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8
Kaan Aslandağ
 

Similar to NFS is an excellent way of sharing files between linux and other unix systems (20)

Linux
LinuxLinux
Linux
 
Server configuration
Server configurationServer configuration
Server configuration
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02
 
Unix Administration 2
Unix Administration 2Unix Administration 2
Unix Administration 2
 
Divya
DivyaDivya
Divya
 
Divya
DivyaDivya
Divya
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
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
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Ftp server
Ftp serverFtp server
Ftp server
 
Graphing Nagios services with pnp4nagios
Graphing Nagios services with pnp4nagiosGraphing Nagios services with pnp4nagios
Graphing Nagios services with pnp4nagios
 
Sahul
SahulSahul
Sahul
 
Sahul
SahulSahul
Sahul
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 
Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8
 

More from Ashish Mamgain

Phases of personal growth
Phases of personal growthPhases of personal growth
Phases of personal growth
Ashish Mamgain
 
25 simple ways to motivate yourself
25 simple ways to motivate yourself25 simple ways to motivate yourself
25 simple ways to motivate yourself
Ashish Mamgain
 
The birth of linux
The birth of linuxThe birth of linux
The birth of linux
Ashish Mamgain
 
Features of computer
Features of computerFeatures of computer
Features of computer
Ashish Mamgain
 
Quickbooks training in Chandigarh
Quickbooks training in ChandigarhQuickbooks training in Chandigarh
Quickbooks training in Chandigarh
Ashish Mamgain
 
Computer courses in Chandigarh
Computer courses in ChandigarhComputer courses in Chandigarh
Computer courses in Chandigarh
Ashish Mamgain
 
Tally training institute in Chandigarh
Tally training institute in ChandigarhTally training institute in Chandigarh
Tally training institute in Chandigarh
Ashish Mamgain
 
Computer courses in Chandigarh
Computer courses in ChandigarhComputer courses in Chandigarh
Computer courses in Chandigarh
Ashish Mamgain
 

More from Ashish Mamgain (8)

Phases of personal growth
Phases of personal growthPhases of personal growth
Phases of personal growth
 
25 simple ways to motivate yourself
25 simple ways to motivate yourself25 simple ways to motivate yourself
25 simple ways to motivate yourself
 
The birth of linux
The birth of linuxThe birth of linux
The birth of linux
 
Features of computer
Features of computerFeatures of computer
Features of computer
 
Quickbooks training in Chandigarh
Quickbooks training in ChandigarhQuickbooks training in Chandigarh
Quickbooks training in Chandigarh
 
Computer courses in Chandigarh
Computer courses in ChandigarhComputer courses in Chandigarh
Computer courses in Chandigarh
 
Tally training institute in Chandigarh
Tally training institute in ChandigarhTally training institute in Chandigarh
Tally training institute in Chandigarh
 
Computer courses in Chandigarh
Computer courses in ChandigarhComputer courses in Chandigarh
Computer courses in Chandigarh
 

Recently uploaded

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 

NFS is an excellent way of sharing files between linux and other unix systems

  • 1. NFS is an excellent way of sharing files between Linux and other UNIX systems
  • 2. NFS is an great way of distribution files between Linux and other UNIX systems. While Samba is a great choice due to the unity with Windows, if you're in a Windows-less environment, NFS may be a exceptional choice. NFS allows for machines to mount without certification, at boot, which is great if you have a cluster of systems or if you need to use a integrate home directory system (using an NFS- mounted directory for home directories to keep your composition and files identical on more systems). NFS is also very simple to set up. To begin, you need to install the NFS package, so on Fedora or Red Hat Enterprise Linux and other same systems, install the nfs-utils package:
  • 3. # yum install nfs-utils Next, you will need to edit /etc/exports which is where we describe what filesystems can be casually accessed. A pattern/etc/exports may look like this: /srv hosta.domain.com(rw) hostb.domain.com(ro) /home 192.168.1.0/255.255.255.0(rw) What this /etc/exports does is export the /srv directory on the server to the hosta.domain.com computer as read/write and to hostb.domain.com as read-only. It still exports /home as read/write to other computer in the 192.168.1.0 network (192.168.1.0 being the network address and 255.255.255.0 being the netmask).
  • 4. There are any options you can supply on a per-host or per-network basis, add the no_root_squash option which will not restrain root on a customer machine from writing files to the server as root; by default, NFS will map other appeal from root on the customer to the 'nobody' client on the server. Next, analysis/etc/hosts.allow and /etc/hosts.deny. NFS will analysis these files for access manage to the server. This is especially basic if you are using wildcards or broad network specifications in /etc/exports; using hosts.allow and hosts.deny you can fine-tune which customer do and don't have access. For detail, you may include in /etc/hosts.deny:
  • 5. and then in /etc/hosts.allow: This would only allow the hosts specified in /etc/hosts.allow to connect to the portmap service. You can bring extra fine-grained and also include entries for lockd, rquotad, mountd, and statd — all other NFS-related services.
  • 6. Finally, to start NFS sharing, on the server you need to start a few services: On newer systems, portmap is possibly deprecated in support of portreserve; in that case you would use service portreserve start instead. To see what file systems are exported, use the exportfs command; if you've made modification to /etc/exports, use exportfs -ra to force NFS to re-read the configuration. To cause assured that NFS is running, use the rpcinfo command; if it returns a list of services and addresses being listened to, you know it is running.
  • 7. Finally, if you are running iptables on the server as a firewall, you will need to shift what ports the NFS services listen to. By default, these are incidental unused ports, with portreserve/portmap letting requesting services know what ports to attach to. This is a huge difference between NFSv3, where this is true, and NFSv4 which simply uses TCP port 2049, so this mostly depends on which version of NFS you strategy to use or enforce. On Fedora or Red Hat Enterprise Linux, this can be done by editing /etc/sysconfig/nfs. By default, it's all commented, so the following is what we need to uncomment and define: This will effort static ports for the above services. The next step is to open the firewall on these ports, which can be done by editing /etc/sysconfig/iptables (repeatedly keeping in mind this is on a RHEL system):
  • 8. # the following are for NFS -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 2049 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 32803 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 32769 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 892 -j ACCEPT
  • 9. -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 875 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 875 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p tcp —dport 662 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state —state NEW -p udp —dport 662 -j ACCEPT
  • 10. After these shifting are made, restart the firewall and the NFS services: At this point, your NFS server is set up and accessible to obtain connections from remote customer, which can be approved by mounting one of the exported filesystems on the customer:
  • 11. Call us @ 9988741983 Visit: Linux training in Chandigarh