[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4


rmnfsexp Command

Purpose

Unexports a directory from NFS clients.

Syntax

/usr/sbin/rmnfsexp -d Directory [ -f Exports_file] [ -I | -B | -N ]

Description

The rmnfsexp command removes an entry from the exports list for NFS clients. The rmnfsexp command starts the exportfs command to unexport the specified directory. If an entry exists in the /etc/exports file, that entry is removed.

Flags


-d Directory Specifies the directory to be unexported.
-f Exports_File Specifies the full pathname of the exports file to use if other than the /etc/exports file.
-I This flag directs the command to remove the entry from the /etc/exports file without executing the exportfs command.
-B Removes the entry in the /etc/exports file for the directory specified and executes the exportfs command to remove the export.
-N Unexports the directory immediately by invoking the exportfs command. The /etc/exports file is not modified with this flag.

Examples

  1. To unexport a directory immediately, enter:

    rmnfsexp -d /usr -N
    

    In this example, the /usr directory is unexported immediately.

  2. To unexport a directory immediately and after every system restart, enter:

    rmnfsexp -d /home/guest -B
    
  3. To unexport a directory immediately from an exports file other than the /etc/exports file, enter:

    rmnfsexp -d /usr -f /etc/exports.other -N
    

Files


/etc/exports
  Lists the directories that the server can export.
/etc/xtab
  Lists currently exported directories.
/etc/netgroup
  Contains information about each user group on the network.

Related Information

The chnfsexp command, exportfs command, mknfsexp command.

List of NFS Commands.

Network File System (NFS) Overview for System Management in AIX 5L Version 5.1 System Management Guide: Communications and Networks.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]