chnfsrtd Command

Purpose

Changes the local NFS realm-to-domain mappings.

Syntax

chnfsrtd [ -a RealmDomain ] [ -e OldRealm OldDomain NewRealm NewDomain ] [ -r RealmDomain ]

Description

The chnfsrtd command administers the local realm-to-domain mappings of the system. The local realm-to-domain mappings are stored in the /etc/nfs/realm.map file.
Note: Use the chnfsdom command to list the current realm-to-domain mappings.

Flags

Item Description
-a RealmDomain Adds a new realm-to-domain mapping.
-e OldRealm OldDomain NewRealm NewDomain Edits an existing realm-to-domain mapping.
-r RealmDomain Removes a realm-to-domain mapping.

Security

Users must have root authority to use the chnfsrtd command.

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 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To add a new realm-to-domain mapping, type:
    chnfsrtd -a realm1 domain1
    This commands appends realm1 domain1 to the /etc/nfs/realm.map file.
  2. To remove a realm-to-domain mapping, type the following:
    chnfsrtd -r realm2 domain2
    This command removes realm2 domain2 from the /etc/nfs/realm.map file, if that mapping exists.
  3. To edit an existing realm-to-domain mapping, type:
    chnfsrtd -e realm3 domain3 realm4 domain4
    This command changes the realm3 domain3 mapping to realm4 domain4 in the /etc/nfs/realm.map file, if that mapping exists.

Files

Item Description
/etc/nfs/realm.map Stores the local realm-to-domain mappings.