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

问题描述 投票:0回答:1

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

members
lid
getent

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

unix mainframe zos
1个回答
1
投票

这将取决于您已安装的安全管理器。假设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)
© www.soinside.com 2019 - 2024. All rights reserved.