Tuesday, June 12, 2012

Network file sharing



Network File Sharing (NFS)

nfs network file sharing is nothing but folder sharing between linux to linux platforms. In this we can access folder and file through the network

Package: NFS
Portno: 2049

To install nfs server
#apt-get install nfs-kernel-server

To add and create directory for nfs sharing
#mkdir /sunny
#cd /sunny
#touch 3 4 5
go to the configuration file
#vim /etc/exports
/sunny 192.168.*.*(rw,sync)
:wq!
To restart the server
#/etc/init.d/nfs-kernel-server restart
To check the file to be shared
#cat /etc/exports

To configure at the clientside
first install portmap
#apt-get install nfs-common portmap
Then create a file where the file sharing to be mounted
#mkdir /nfs
Then mount the nfs sharing files
#mount -t nfs 192.168.*.* :/sunny /nfs
then go to see the content in the nfs folder
#cd /nfs
#ls -l
3 4 5

No comments:

Post a Comment