Command Line Configuration - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 21. Network File System (NFS)
• Specify local user ID for anonymous users — If Treat all client users as anonymous users
is selected, this option lets you specify a user ID for the anonymous user. This option corresponds
to anonuid.
• Specify local group ID for anonymous users — If Treat all client users as anonymous
users is selected, this option lets you specify a group ID for the anonymous user. This option
corresponds to anongid.
To edit an existing NFS share, select the share from the list, and click the Properties button. To delete
an existing NFS share, select the share from the list, and click the Delete button.
After clicking OK to add, edit, or delete an NFS share from the list, the changes take place
immediately — the server daemon is restarted and the old configuration file is saved as /etc/
exports.bak. The new configuration is written to /etc/exports.
The NFS Server Configuration Tool reads and writes directly to the /etc/exports configuration
file. Thus, the file can be modified manually after using the tool, and the tool can be used after
modifying the file manually (provided the file was modified with correct syntax).

21.3.1. Command Line Configuration

If you prefer editing configuration files using a text editor or if you do not have the X Window System
installed, you can modify the configuration file directly.
The /etc/exports file controls what directories the NFS server exports. Its format is as follows:
directoryhostname(options)
The only option that needs to be specified is one of sync or async (sync is recommended). If sync
is specified, the server does not reply to requests before the changes made by the request are written
to the disk.
For example,
/misc/export speedy.example.com(sync)
would allow users from speedy.example.com to mount /misc/export with the default read-only
permissions, but,
/misc/export speedy.example.com(rw,sync)
would allow users from speedy.example.com to mount /misc/export with read/write privileges.
Section 21.3.2, "Hostname Formats"
Refer to
Refer to the Reference Guide for a list of options that can be specified.
Warning
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
210
for an explanation of possible hostname formats.

Advertisement

Table of Contents
loading

Table of Contents