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

vserver services name-service unix-user show

Contributors
Suggest changes

Display local UNIX users

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver services name-service unix-user show command displays information about local UNIX users. The command output depends on the parameter or parameters specified with the command. If you do not specify any parameters, the command displays the following information about all local UNIX users:

  • Vserver name

  • User name

  • User ID

  • Primary group ID

  • Full name

Parameters

{ [-fields <fieldname>,…​]

If you specify the -fields parameter, the command only displays the fields that you specify.

| [-instance ] }

If you specify the -instance parameter, the command displays detailed information about all entries.

[-vserver <vserver name>] - Vserver

If you specify this parameter and the -user parameter, the command displays information only about the specified local UNIX user. If you specify this parameter by itself, the command displays information only about the local UNIX user or users that are located on the specified Vserver.

[-user <text>] - User Name

If you specify this parameter and the -vserver parameter, the command displays information only about the specified local UNIX user. If you specify this parameter by itself, the command displays information only about the local UNIX user or users that have the specified name.

[-id <integer>] - User ID

If you specify this parameter, the command displays information only about the local UNIX user that has the specified ID.

[-primary-gid <integer>] - Primary Group ID

If you specify this parameter, the command displays information only about the local UNIX user or users that have the specified primary group ID.

[-full-name <text>] - User's Full Name

If you specify this parameter, the command displays information only about the local UNIX user or users that match the specified name.

Examples

The following example displays information about all local UNIX users:

vs1::> vserver services name-service unix-user show
     User       User   Group  Full
Vserver    Name       ID     ID     Name
---------- ---------- ------ ------ ----------------
vs0        admin      100    100    administrator
vs0        guest      1000   100    guest
vs0        jdoe       4673   100    Jane Doe
vs0        monitor    2000   100    monitor
vs0        pjones     4236   100    Peter Jones
vs0        root       10     100    root
vs0        tsmith     3289   100    Tom Smith