Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 add article

NFS server & client in FreeBSD
Networking and Connectivity Posted by Eliena Andrews on Wednesday March 14, @01:25AM
from the dept.
NFS refers to Network File System and as the name suggests allows any system to share a filesystem over the network.

NFS server configuration

NFS server is the system that allows other systems to mount it's filesystem as their own. The main daemons that need to be running are nfsd, mountd and rpcbind. Nfsd daemon services request from the clients and passes the requests to the mountd daemon. Mountd carries out the requests from nfsd. Rpcbind allows nfs clients to identify the ports that any RPC based service is running
Server side
vi /etc/rc.conf
#if nfs client as well

The filesystems to be exported are specified in /etc/exports
vi /etc/exports
#filesystem options remotesystems
/home -maproot=0:0
/home2 -ro

For various options see exportfs man page
The -maproot=root flag allows the root user on the remote system to write data on the exported file system as root. If the -maproot=root flag is not specified, then even if a user has root access on the remote system, he will not be able to modify files on the exported file system.

A remote host can only be specified once per file system, and may only have one default entry. For example, assume that /usr is a single file system. The following /etc/exports would be invalid:

# Invalid when /usr is one file system
/usr/src client
/usr/ports client

After changing /etc/exports reload nfsd server or mountd daemon
# /etc/rc.d/mountd onereload

Starting services on nfs server
/etc/rc.d/nfsd start
/etc/rc.d/rpcbind start
mountd -r

See exports
showmount -e
showmount -e "hostname"



Best Regards,
Eliena Andrews

FAQ: Frequently Asked Questions | TIP:fsck -y remotely  >


Related Links
  • Articles on Networking and Connectivity
  • Also by Eliena Andrews
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]