【发布时间】:2019-10-17 15:03:35
【问题描述】:
我想在 z/OS 中显示分配给 Unix 组的用户。在其他平台上,这些命令之一可以工作,但它们在 USS 中不可用:
members
lid
getent
如何从 z/OS Unix shell 命令行执行此操作?或者什么手册可以描述它?谢谢。
【问题讨论】:
我想在 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)
【讨论】: