Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Sharing and unsharing resources

&pagelevel(4)&pagelevel

Authorization: Root authorization is required for making available (sharing) resources, and for revoking their availability (unsharing).

Sharing (exporting) local resources

An NFS server makes local resources available for processing by remote systems (NFS clients). You make local resources availble by means of the commands share or shareall:

  • The share command is used to make an individual resource available for client access and to define the access rights for clients.

  • The shareall command allows multiple resources to be simultaneously made available for client access. The command expects one or more share commands in a user-defined file, from the standard input, or in the administration file /etc/dfs/dfstab.

Unsharing resources

The availability of resources is revoked either by means of the commands unshare or unshareall, or automatically on termination of NFS.

Sharing resources permanently

If you want to make certain resources available to other computers on a permanent basis, you can configure your system such that these resources are automatically shared when NFS is started. This procedure should be followed if a resource must always be available to other computers, for example, and client access will probably never or only rarely be canceled.

Resources that are to be shared automatically are entered in the /etc/dfs/dfstab file. This file is created automatically when NFS is installed.

The dfstab file contains a list of all resources that are to be made available to the clients after NFS is started, and also indicates the access authorizations valid for these resources. To enter a resource in dfstab, delete a resource, or change options, edit the file using any supported text editor. The changes made will come into effect as soon as POSIX is restarted, a shareall command is issued, or NFS is stopped and restarted.