User Guide DDOC0199-000-A9
1-Slot Data Transport System (CSfC) 13 - 30 Command Line Interface
© 2024 Curtiss-Wright Defense Solutions Revision 1.0
13.3.19 nfsctl
NOTE
The DTS1+ / XDS1+ has only 1 RMC slot. As a result, the -s option is always -s 0.
Description:
The nfsctl command is used to determine the configuration of the NFS exports for both the static /
etc/exports file, and the flags for the exportfs command used to dynamically create NFS exports.
Those exports are created in two cases. The first is when the NFS server is running, and an RMC/
partition is mounted. The second is when an RMC/partition is already mounted, and the NFS
server is started,
The default /etc/exports file is:
/rmc_shares *(rw, fsid=0,sync, no_root_squash, no_all_squash)
This is meant to export the top level directory at /rmc_shares. RMCs/partitions will be created
underneath this top level directory, with these default options:
rw,fsid=0,sync,no_root_squash,no_all_squash
The default options used for the exportfs command are:
rw, async, wdelay, root_squash, all_squash,no_subtree_check,
anonuid=1000, anongid=1000
This is meant to export the RMC/partitions so they belong the user on the DTS and the files can be
seen can be seen from other services, such as HTTP, FTP, CIFS, etc. that user has access too.
Other configurations may be more appropriate, depending on the users intent for the DTS.
CAUTION
INCORRECT OPERATION. Be careful to provide a correctly formed string for <nfsString>. No
error checking is done on it.
NOTE
If an RMC/partition is mounted read only, the corresponding export will also be read only, regard-
less of the options set here.
NOTE
The NFS server needs to be restarted for a new /etc/exports file to take effect.
Syntax:
nfsctl [-h | --help | --version]
nfsctl [--exports] <phr>
nfsctl [--exportfs] <phr>
Options:
-h, --help..................................................Print help message.
--version ..................................................Print program version.
--exports, exports <nfsString> ...............Use <nfsString> as the options to the/etc/exports file.
--exportfs, exportfs <nfsString>..............Use <nfsString> as the options to the exportfs command.
Example: Status command
Example: Turn off root_squash command
Example: Turn off autmounting on slot 0 completely command
cw_dts> nfsctl
[nfsctl]
exports:"rw,fsid=0,sync,no_root_squash,no_all_squash"
exportfs:"rw,async,wdelay,root_squash,all_squash,no_subtree_check,anonuid=1000,a
nongid=1000"
[!nfsctl] <summary>
nfsctl --exportfs "rw,async,wdelay,all_squash,no_subtree_check,anonuid=1000,
anongid=1000"
nfsctl --exports “rw,async,wdelay,root_squash,no_subtree_check"