
Next, go to your Debian /etc directory. There should now be a file named
exports. Load exports into the pico text editor and add the following line:
/armfiles 192.168.0.127(rw)
This configures the NFS server so that any device at IP 192.168.0.127 (this will
be the GESBC-9302) will be allowed access to the /armfiles directory with read
and write permissions.
Next, load the /etc/hosts.allow file into the editor and add the following line:
portmap 192.168.0.127
This alerts the NFS server that any device at IP 192.168.0.127 should be allowed
into the Debian system.
When you are done, the files should look something like that below.
etc/exports file:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/armfiles 192.168.0.127(rw)
etc/hosts.allo
file:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5), hosts_options(5)
# and /usr/doc/netbase/portmapper.txt.gz
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#
portmap: 192.168.0.127
Komentarze do niniejszej Instrukcji