is one of the many Red Hat services that can take advantage of TCP Wrappers as
well as firewall rules for security. We don’t use TCP Wrappers here, but should
you run into trouble on the exam with the NFS service not working, don’t forget
to check to see whether anything is being filtered by TCP Wrappers. Because you
are using NFS version 4 here, you need to create only a single firewall rule.
is the file-sharing protocol used by the Microsoft Windows operating system. Because
some network environments include more than one operating system, Red Hat Enterprise
Linux provides a way to use alternative file-sharing methods. If only sharing between
Linux and other UNIX variants, it is recommended that NFS be used instead. For
additional information on Samba, refer to the
configure a Red Hat Enterprise Linux system as an NFS server via the command
line, make sure the nfs-utils RPM package is installed.
server configuration file, /etc/exports, uses the following format:
shared_directory is the name of the directory to be shared, allowed_hosts is
the IP address range of the allowed clients, and options is a list of NFS
options for the exported directory. Obviously, the exported directory must
exist. You must be root to modify this file.
Red Hat Enterprise Linux 5 & 6, NFS is protected by the default
Security-Enhanced Linux (SELinux) policy, known as the targeted policy. By
default, this targeted policy allows NFS connections to the server by setting
the nfs_export_all_ro and nfs_export_all_rw SELinux booleans to 1.
you are sharing home directories over NFS while using SELinux, you must set
boolean to 1 on each client connecting to the NFS server sharing the home
directories. Execute the following command as root:
an enterprise computing environment, it is common to share files between
computers or allow several users to access the same set of files on a central
server and have all changes be visible to all users immediately. In a pure UNIX
environment, including those consisting solely of Red Hat Enterprise Linux
systems, this can be achieved via Network File System (NFS). If sharing files
between Red Hat Enterprise Linux and Microsoft Windows systems is desired,
Samba can be used to achieve connectivity.