Authentication

In the NFS environment, authentication refers to any of several security mechanisms by which an NFS server can accept or reject requests from NFS clients to mount an NFS shared directory. You can specify individual authentication settings for each NFS share and mount in your environment. Authentication can be based on computer names, netgroups, networks, and/or DNS domains.

Authentication Methods

The specific authentication methods that are available to you depend on the settings in your /etc/nfssec.conf file. The four common NFS authentication methods are as follows:

Using Authentication Methods

Authentication is a two-part process: the NFS server (also called the NFS host) -- the one sharing the directory -- must support a particular authentication method, and an NFS client -- the one mounting the directory -- must be configured to use that same method. For example, for a client to successfully mount a directory using AUTH_SYS, both the client and the server must be configured for AUTH_SYS.

General NFS client authentication settings -- basically, a list of the methods defined on the client -- are stored on the client machine in the /etc/nfssec.conf file. These settings are augmented, particularly when using AUTH_DES or AUTH_KERB, with encrypted settings on one or more remote authentication servers.

If either the client or the server is not configured to use a particular method, and the client attempts to mount a shared directory using that method, the client will be handled as unauthenticated. Unauthenticated clients are given access privileges based on the User ID (uid) you specify on the Advanced tab in the Share Properties dialog box. By default, this uid is UID_NOBODY, which generally provides very limited access to the shared directory.

You can configure NFS clients and servers to use multiple authentication methods. If no method is specified, the default method defined in /etc/nfssec.conf (usually AUTH_SYS) is used automatically.

Client Access Lists

For each authentication method, AdminSuite's Mounts/Shares tool lets you specify default Read Only or Read/Write permissions that will be used by all clients that attempt to mount the shared directory using the same method. For example, you can specify Read/Write for all AUTH_SYS clients, but Read Only for all AUTH_DES clients. Default access privileges, as well as exceptions to the defaults, can be specified in the Advanced path in the Add Shared Directory wizard, or on the Access tab of the Share Properties dialog box.

Alternatively, you can create a Custom Access List for each method, which specifies access privileges for individual client types. In the Mounts/Shares tool, you create Custom Access Lists using the Advanced path in the Add Shared Directory wizard, or in the Add Client subdialog off the Access tab of the Share Properties dialog box.

When you add a client to a Custom Access List, the syntax you use determines the type of client you are adding. Specifically: