How to share folder in RHEL 5

Spread the love

First , Install its packages .

# yum install nfs-utils

# mkdir /New/mount

# chmod -R 777 /New/mount

# /sbin/service nfs status

# /sbin/service nfs start

112.168.171.35 :-

# nano /etc/exports

Insert this into file

/New/mount 112.168.171.35(rw,sync,no_root_squash,no_all_squash)




112.168.171.231 : –

# nano /etc/exports

Insert this into file

/New/mount 112.168.171.231 (rw,sync,no_root_squash,no_all_squash)

 

# mount -t nfs 112.168.171.231:/New/mount /New/mount

Checking the mounting status using  command

# df -h

Leave a Reply

Your email address will not be published. Required fields are marked *