Hostname Formats; Starting And Stopping The Server - Red Hat ENTERPRISE LINUX 4 System Administration Manual

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

Advertisement

is a space between the hostname and the options, the options apply to the rest of the
world. For example, examine the following lines:
/misc/export speedy.example.com(rw,sync)
/misc/export speedy.example.com (rw,sync)
The first line grants users from speedy.example.com read-write access and denies all
other users. The second line grants users from speedy.example.com read-only access
(the default) and allows the rest of the world read-write access.
Each time you change /etc/exports, you must inform the NFS daemon of the change, or reload
the configuration file with the following command:
/sbin/service nfs reload

21.3.2. Hostname Formats

The host(s) can be in the following forms:
• Single machine — A fully qualified domain name (that can be resolved by the server), hostname
(that can be resolved by the server), or an IP address.
• Series of machines specified with wildcards — Use the * or ? character to specify a string match.
Wildcards are not to be used with IP addresses; however, they may accidentally work if reverse
DNS lookups fail. When specifying wildcards in fully qualified domain names, dots (.) are not
included in the wildcard. For example, *.example.com includes one.example.com but does not
include one.two.example.com.
• IP networks — Use a.b.c.d/z, where a.b.c.d is the network and z is the number of bits in the
netmask (for example 192.168.0.0/24). Another acceptable format is a.b.c.d/netmask, where
a.b.c.d is the network and netmask is the netmask (for example, 192.168.100.8/255.255.255.0).
• Netgroups — In the format @group-name, where group-name is the NIS netgroup name.

21.3.3. Starting and Stopping the Server

On the server that is exporting NFS file systems, the nfs service must be running.
View the status of the NFS daemon with the following command:
/sbin/service nfs status
Start the NFS daemon with the following command:
/sbin/service nfs start
Stop the NFS daemon with the following command:
/sbin/service nfs stop
To start the nfs service at boot time, use the command:
Hostname Formats
211

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents