Changes the options used to export a directory to NFS clients.
/usr/sbin/chnfsexp -d Directory [ -f Exports_file ] [ -t [ { rw | ro | rm -h HostName [ ,HostName ... ] } ] ] [ -a UID ] [ -r HostName [ , HostName ... ] ] [ -c HostName , HostName ... ] ] [ -s | -n ] [ -I | -B | -N ] [ -P | -p ]
The chnfsexp command takes as a parameter a directory that is currently exported to NFS clients and changes the options used to export that directory. The options specified on the command line will replace those currently being used.
chnfsexp -d /usr -t rw -c host1,host3,host29,grp3,grp2 -B
In this example, the chnfsexp command changes the attributes of the /usr directory to give read and write permission to the host1, host3, and host29 hosts, and the grp3 and grp2 netgroups.
chnfsexp -d /usr -t rw -c host1,host3,host29,grp3,grp2 -f /etc/exports.other -B
In this example, the chnfsexp command changes the attributes of the /usr directory to give read and write permission to the host1, host3, and host29 hosts: the grp3 and grp2 netgroups; and specifies the path name of the exports file as /etc/exports.other.
/etc/exports | Lists directories the server can export. |
The exportfs command, mknfsexp command, rmnfsexp command.
Network File System (NFS) Overview for System Management in AIX 5L Version 5.2 System Management Guide: Communications and Networks.