Skip to main content
A newer release of this product is available.

vserver services name-service getxxbyyy getpwbyname

Contributors
Suggest changes

Gets the password entry by using the user name.

Availability: This command is available to cluster administrators at the advanced privilege level.

Description

The ` vserver services name-service getxxbyyy getpwbyname ` gets the password entry by using the user name. The underlying service for doing the lookup is selected based on the configured name service switch order.

Parameters

-node {<nodename>|local} - Node Name (privilege: advanced)

Use this parameter to specify the node where the lookup will be performed

-vserver <vserver name> - Vserver Name (privilege: advanced)

Use this parameter to specify the Vserver where the lookup will be performed

-username <text> - User Name (privilege: advanced)

Use this parameter to specify the Username for which the password entry is requested

[-show-source {true|false}] - Source used for Lookup (privilege: advanced)

Use this parameter to specify if source used for lookup needs to be displayed

[-use-cache <true>] - Enable/Disable cache (privilege: advanced)

If set to true , locally-cached values will be used. The default value is false .

Examples

The following example requests password entry from the given username:

cluster1::*> vserver services name-service getxxbyyy getpwbyname -node cluster1-01 -vserver vs1 -username vsadmin -show-source true -use-rbac false -use-cache false
      Source used for lookup: Files
      pw_name: daemon
      pw_passwd: *
      pw_uid: 1, pw_gid: 1
      pw_gecos: Owner of many system processes
      pw_dir: /root
      pw_shell: /usr/sbin/nologin