Skip to main content

vserver services name-service unix-group show

Contributors
Suggest changes

Display local UNIX groups

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

Description

The vserver services name-service unix-group show command displays information about local UNIX groups.

Parameters

{ [-fields <fieldname>,…​]

If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

| [-members ]

Use this parameter to display the list of users in each local UNIX group.

| [-instance ] }

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

[-vserver <vserver name>] - Vserver

Use this parameter with the -name parameter to display information only about the local UNIX group you specify. Use this parameter without -name to display information only about the local UNIX groups that are located on the specified Vserver.

[-name <text>] - Group Name

Use this parameter with the -vserver parameter to display information only about the local UNIX group you specify. Use this parameter without -vserver to display information only about the local UNIX groups that match the name you specify.

[-id <integer>] - Group ID

Use this parameter to display information only about the local UNIX group that has the ID you specify.

[-users <text>,…​] - Users

Use this parameter to display information only about the local UNIX groups that include the user names you specify.

Examples

The following example displays information about all local UNIX groups, including lists of their users:

cluster1::> vserver services name-service unix-group show -members
Vserver    Name       ID

vs0         dev        44
Users: admin, jdoe, tsmith

vs0         sales      12
Users: admin, guest, pjones

vs1         testgroup  13
Users: admin, root, testuser

vs1         users      100
Users: admin, jdoe, pjones, tsmith