Red Hat Linux 7 Unleashed

Red Hat Linux 7 Unleashed

By William Ball

Exporting Filesystems with linuxconf

linuxconf is a very handy tool for setting up NFS shares as it saves you having to learn the exact syntax that is used in /etc/exports.

Type linuxconf at the prompt. Go to Networking, Server Tasks, and then Exported File Systems (NFS).

You are presented with a list of all the paths you are currently exporting (see Figure 16.1). Obviously at present the list is empty. For each path that you want to export you will add it here. Each of these is then added to /etc/exports. Click Add, and the dialog box shown in Figure 16.2 displays.

16fig01.gif

Figure 16.1 List of filesystems exported by NFS.

16fig02.gif

Figure 16.2 Options for NFS export.

Under Path to Export enter the full path to the directory you want to export. There is a place to enter a comment; this is optional. You are asked for the Client name(s) to export to. There are four types of entries that you can use here. These were explained earlier, in the section "Setting Up the /etc/exports File."

You are presented with options for the share. If you select May Write, the user on the client will be able to write to files in the exported directory providing that the file's permissions allow them to do so. Root Privileges gives root on the client root privileges in the exported directory. This puts a lot of trust in root on the client machine. You can leave Request Access from Secure Port selected.

You may of course want to have different permissions for different clients. That is why there is more than one place to enter a client name and its permissions. By default there are two places for entering a client and its permissions. You can have as many as you wish—just click Add and another entry will be created.

Now save your changes and exit linuxconf. Make sure to accept changes whenever presented with the option.

Share ThisShare This

Informit Network