The only time NFS performs authentication is when a client system attempts to mount the
shared NFS resource. To limit access to the NFS service, TCP wrappers are used. TCP
wrappers read the
/etc/hosts.allow
and
/etc/hosts.deny
files to determine if a particular
client or network is permitted or denied access to the NFS service. For more information on
configuring access controls with TCP wrappers, refer to
Chapter 17, TCP Wrappers and
xinetd
.
After the client is granted access by TCP wrappers, the NFS server refers to its configuration
file,
/etc/exports
, to determine whether the client is allowed to access any of the exported file
systems. Once access is granted, all file and directory operations are available to the user.
Important
In order for NFS to work with a default installation of Red Hat Enterprise Linux
with a firewall enabled, IPTables with the default TCP port 2049 must be
configured. Without an IPTables configuration, NFS does not function properly.
The NFS initialization script and
rpc.nfsd
process now allow binding to any
specified port during system start up. However, this can be error prone if the port
is unavailable or conflicts with another daemon.
1.1. Required Services
Red Hat Enterprise Linux uses a combination of kernel-level support and daemon processes to
provide NFS file sharing. NFSv2 and NFSv3 rely on Remote Procedure Calls (RPC) to encode
and decode requests between clients and servers. RPC services under Linux are controlled by
the
portmap
service. To share or mount NFS file systems, the following services work together,
depending on which version of NFS is implemented:
•
nfs
— Starts the appropriate RPC processes to service requests for shared NFS file
systems.
•
nfslock
— An optional service that starts the appropriate RPC processes to allow NFS
clients to lock files on the server.
•
portmap
— The RPC service for Linux; it responds to requests for RPC services and sets up
connections to the requested RPC service. This is not used with NFSv4.
The following RPC processes facilitate NFS services:
•
rpc.mountd
— This process receives mount requests from NFS clients and verifies the
requested file system is currently exported. This process is started automatically by the
nfs
service and does not require user configuration. This is not used with NFSv4.
Chapter 9. Network File Syste...
132
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......