- Create a directory eg. /comon
- #mkdir /common
- Install package
- #yum install nfs-utils
- Change Mode(chmod) of the directory
- #chmod 777 /common
- Make entry in the /etc/exports file
- #vim /etc/exports
- (r,w) access only to 192.168.0.1 Network
- /common 192.168.0.1/255.255.255.0(rw,sync)
- (r) access to all
- /common *(ro,sync)
- give access to root on host 192.168.0.25
- /common 192.168.0.25(rw,no_root_sqash,sync)
- NFS to example.com domain only
- /common *.example.com(rw,sync)
- Save & quit
- Restart nfs
- #service nfs restart
- #chkconfig nfs on
- To verify,
- Virtual M/c #showmount -e localhost
Wednesday, 4 September 2013
Export a directory via NFS
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment