Section 10.3:Exporting NFS Filesystems
service autofs status
If you modify the /etc/auto.master configuration file while autofs is running, you must tell the
automount daemon(s) to reload by typing the following command at a shell prompt:
service autofs reload
To learn how to configure autofs to start at boot time, refer to Chapter 8, Controlling Access to Services
for information on managing services.
10.3 Exporting NFS Filesystems
The /etc/exports file controls what filesystems you wish to export. Its format is as follows:
directory
The ( options ) are not required. For example:
/mnt/export
would allow users from speedy.redhat.com to mount /mnt/export with the default read-
only permissions, but:
/mnt/export
would allow users from speedy.redhat.com to mount /mnt/export with read-write priv-
iledges.
Be careful with spaces in the /etc/exports file. If there are no spaces
between the hostname and the options in parentheses, the options apply only
to the hostname. If there is a space between the hostname and the options, the
options apply to the rest of the world. For example, examine the following
lines:
/mnt/export speedy.redhat.com(rw)
/mnt/export speedy.redhat.com (rw)
The first line grants users from speedy.redhat.com read-write access
and denies all other users. The second line grants users from speedy.red-
hat.com read-only access (the default) and allows the rest of the world
read-write access.
hostname ( options )
speedy.redhat.com
speedy.redhat.com(rw)
CAUTION
111
Need help?
Do you have a question about the LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE and is the answer not in the manual?
Questions and answers