nfshostmap Command

Purpose

Manage mapping from hosts to principals for an nfs client.

Syntax

/usr/sbin/nfshostmap -a hostname alias1 alias2 | -d hostname | -e hostname alias1 alias2 | -l

Description

All hosts defined as aliases will be mapped to the host defined as a hostname when constructing a kerberos request to the server. This is useful if, for example, a server has interfaces wizard.sub.austin.ibm.com and wizard.austin.ibm.com; if this server's kerberos principal is wizard.austin.ibm.com, nfshostmap -a wizard.austin.ibm.com wizard.sub.austin.ibm.com run on the client will take care of this problem.

This modifies /etc/nfs/princmap, which is read by the gssd daemon on startup.

Flags

Item Description
-a hostname alias1 alias2 Adds a mapping from the aliases to hostname,
-d hostname Deletes all aliases for hostname.
-e hostname alias1 alias2 Removes all previous mappings for hostname and replaces them with the given alias list.
-l Prints the existing state of the respective files on the system.

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