如何显示z/os Unix组中的用户?

How to display users in z/os Unix group?

我想显示分配给 z/OS 中的 Unix 组的用户。在其他平台上,这些命令之一可以工作,但它们在 USS 中不可用:

members
lid
getent

如何从 z/OS Unix shell 命令行执行此操作?或者什么手册可能描述它?谢谢

这取决于您安装的安全管理器。假设 RACF.

这里是 link 一篇解释该过程的文章。

You can list the RACF® users and groups associated with UIDs and GIDs using the following methods:

1. ISPF shell. See z/OS UNIX System Services User's Guide for information about using the ISPF shell.

2. RACF database unload utility (IRRDBU00). See Using the RACF database unload utility (IRRDBU00) for information.

3. If you use UNIXMAP profiles to associate RACF users and groups with UIDs and GIDs, you can also use RLIST command. For example:

    To see the RACF groups that are associated with GID 237, enter:
    RLIST UNIXMAP G237 ALL
    To see the RACF user IDs that are associated with UID 0, enter:
    RLIST UNIXMAP U0 ALL

    To see all RACF groups and user IDs associated with GIDs and UIDs, enter:
    RLIST UNIXMAP * ALL

    For information about the UNIXMAP class, see Using the UNIXMAP class and Virtual Lookaside Facility (VLF).

4. For installations at AIM stage 2 or higher, you can list a set of users or groups with a specific UID or GID, for example using '223' for the UID value and '55' for the GID value, enter:
   SEARCH CLASS(USER)UID(223)
   SEARCH CLASS(GROUP) GID(55)