Configuring with redhat-config-nfs

Configuring with

You can also use redhat-config-nfs to configure your NFS server in a GUI. To start it, run this command, or in GNOME (or KDE), use the Main Menu (K Menu) System Settings Server Settings NFS Server command. This opens the NFS Server Configuration menu shown in Figure 28.3.

click to expand
Figure 28.3: The NFS Server Configuration menu

To start the configuration process, click the Add button. This opens the Add NFS Share window shown in Figure 28.4. We ll look at configuring the directories described earlier with redhat-config-nfs . For your reference, the previous commands from /etc/exports that we ll be emulating are:

 /mnt/cdrom *,sync),sync) /tmp  *(rw,insecure,sync,no_wdelay,all_squash,anonuid=600) 

Figure 28.4: Adding a shared NFS directory

As shown in Figure 28.4, we ve set up a share of the /mnt/cdrom directory, with read-only permissions for computers in the * domain. You can set up a separate share of /mnt/cdrom or /tmp to a specific computer such as with read/write permissions.

Select the General Options tab, as shown in Figure 28.5. You can set up several of the options described in Table 28.5. By default, only Sync Write Operations On Request is active. Table 28.5 lists each option and its corresponding command.

Figure 28.5: The General Options tab
Table 28.5: Add NFS Share General Options and Their Corresponding NFS /etc/exports Command


NFS command

Allow Connections From Ports 1024 And Higher


Allow Insecure File Locking


Disable Subtree Checking


Sync Write Operations On Request


Force Sync Of Write Operations Immediately


Select the User Access tab, as shown in Figure 28.6. Table 28.6 lists each option and its corresponding command.

Figure 28.6: The User Access tab
Table 28.6: Add NFS Share User Access Options and the Corresponding NFS /etc/exports Command


NFS command

Treat Remote Root User As Local Root


Treat All Client Users As Anonymous Users


Specify Local User ID For Anonymous Users



anonuid= userid

Specify Local Group ID For Anonymous Users


Group ID

anongid= groupid

You ll note that the first two commands on this tab are mutually exclusive; in other words, you can t treat a remote user as root if you ve configured all NFS clients as anonymous users.

The Specify Local User ID and Specify Local Group ID options aren t configured with a corresponding NFS command; they make no sense and are therefore not activated unless you ve set a specific user or group ID. For more information on user and group ID concepts, see Chapter 09 .

The resulting /etc/exports file is slightly different from before; separate lines are required for the read-only and read/write setups to the computer and network specified earlier:

 /mnt/cdrom *,sync) /mnt/cdrom,sync) /tmp  *(rw,insecure,sync,no_wdelay,all_squash,anonuid=600) 

Remember, you can t configure NFS with redhat-config-nfs alone; for example, you still need to make sure that you don t have a firewall blocking NFS messages, as explained earlier in this chapter.

You also should make sure that the nfs and portmap daemons are started at the appropriate runlevels the next time you boot Linux.


Mastering Red Hat Linux 9
Building Tablet PC Applications (Pro-Developer)
ISBN: 078214179X
EAN: 2147483647
Year: 2005
Pages: 220

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: