Prev | Current Page 1296 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


Sharing NFS File Systems
To share an NFS file system from your Linux system, you need to export it from the server system.
Exporting is done in Linux by adding entries into the /etc/exports file. Each entry identifies a
directory in your local file system that you want to share with other computers. The entry also
identifies the other computers that can share the resource (or opens it to all computers) and
includes other options that reflect permissions associated with the directory.
Remember that when you share a directory, you are sharing all files and subdirectories below that
directory as well (by default). So, you need to be sure that you want to share everything in that
716
Running Servers Part V
directory structure. There are still ways to restrict access within that directory structure, and those
are discussed later in this chapter.
Configuring the /etc/exports File
To make a directory from your Linux system available to other systems, you need to export that
directory. Exporting is done on a permanent basis by adding information about an exported directory
to the /etc/exports file.
The format of the /etc/exports file is
Directory Host(Options) # Comments
where Directory is the name of the directory that you want to share, and Host indicates the
host computer to which the sharing of this directory is restricted.


Pages:
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308