vserver services name-service getxxbyyy getpwbyuid
Gets the password entry by using the user identifier or UID.
Availability: This command is available to cluster administrators at the advanced privilege level.
Description
The ` vserver services name-service getxxbyyy getpwbyuid ` gets the password entry by using the user identifier or UID. 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
-userID <integer>
- User ID (privilege: advanced)-
Use this parameter to specify the UserID for whom 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 isfalse
.
Examples
The following example requests password entry by using the user ID:
cluster1::*> vserver services name-service getxxbyyy getpwbyuid -node cluster1-01 -vserver vs1 -userID 1001 -show-source true -use-rbac true -use-cache false Source used for Lookup: Files pw_name: vsadmin pw_passwd: $1$f7b22f68$KihT1ptYqpEjcM4jfE60f0 pw_uid: 1001 pw_gid: 65533 pw_gecos: User pw_dir: /var/home/vsadmin pw_shell: /sbin/ngsh