Exports a directory to NFS clients.
/usr/sbin/mknfsexp -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 mknfsexp command takes the flags and parameters specified and constructs a line that is syntactically correct for the /etc/exports file. If this command is invoked with the -B flag, an entry will be added to the /etc/exports file and the exportfs command is invoked to export the directory specified. Alternatively, the -I flag adds an entry to the exports file and does not export the directory, or the -N flag does not add an entry to the exports file but does export the directory.
mknfsexp -d /usr -t roIn this example, the mknfsexp command exports the /usr directory with read-only permission.
mknfsexp -d /home/guest -t rm -h bighost,littlehost -sIn this example the mknfsexp command exports the /home/guest directory with read-mostly permission, using more secure protocol.
mknfsexp -d /usr -t rw -c host1,host3,grp3 -IIn the above example, the mknfsexp command exports the /usr directory and gives read and write permission to host1 , host2 , and grp3 . The -I flag makes this change effective on the next system restart.
mknfsexp -d /usr -t ro -f /etc/exports.otherIn the above example, the mknfsexp command exports the /usr directory with read-only permission to the /etc/exports.other file.
/etc/exports | |
Lists the directories that the server can export. |
The chnfsexp command, exportfs command, rmnfsexp command.
NFS Installation and Configuration, and Network File System (NFS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.