如何在 z/os Unix 组中显示用户?
Posted
技术标签:
【中文标题】如何在 z/os Unix 组中显示用户?【英文标题】:How to display users in z/os Unix group? 【发布时间】:2019-10-17 15:03:35 【问题描述】:我想在 z/OS 中显示分配给 Unix 组的用户。在其他平台上,这些命令之一可以工作,但它们在 USS 中不可用:
members
lid
getent
如何从 z/OS Unix shell 命令行执行此操作?或者什么手册可以描述它?谢谢。
【问题讨论】:
【参考方案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)
【讨论】:
假设您的网站使用 RACF 而不是 ACF/2 或 Top Secret。以上是关于如何在 z/os Unix 组中显示用户?的主要内容,如果未能解决你的问题,请参考以下文章
PL/I 程序中的 z/OS MVS 和 z/OS UNIX 互操作?
从 z/OS UNIX 系统服务 (USS) 文件系统下载二进制文件