Install NFS , need to configure /etc/exports.
old exports:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
New exports:
# apt-get install nfs-kernel-server
# echo "/ *.domainname-for-lan-hosts(rw,no_root_squash,nohide)" /
>> /etc/exports
echo:顯示,迴應
>>輸出重定向,輸出到文件、打印機等
result:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/ *.domainname-for-lan-hosts(rw,no_root_squash,nohide)
Examples:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
#
# Get everything exported to any LAN clients possibly root privilege.
# Firewall (ipchains/iptables) limits access from internet
#
/ goofy.lan.aokiconsulting.com(rw,no_root_squash,nohide)
/mnt/hda8 goofy.lan.aokiconsulting.com(rw,no_root_squash,nohide)