mknfs Command

Purpose

Configures the system to run NFS.

Syntax

/usr/sbin/mknfs [ -I | -N | -B ]

Description

The mknfs command configures the system to run the Network File System (NFS) daemons. The mknfs command adds an entry to the inittab file so that the /etc/rc.nfs file is executed on system restart.

Flags

Item Description
-B Adds an entry to the inittab file to execute the /etc/rc.nfs file on system restart. The mknfs command also executes the /etc/rc.nfs file immediately to start the NFS daemons. This flag is the default.
-I Adds an entry to the inittab file to execute the /etc/rc.nfs file on system restart.
-N Starts the /etc/rc.nfs file to start the NFS daemons immediately. When started this way, the daemons run until the next system restart.

Files

Item Description
inittab Controls the initialization process of the system.
/etc/rc.nfs Contains the startup script for the NFS and NIS daemons.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.