尝试安装members
命令以列出组成员,但看到系统上不存在该命令且无法从任何位置安装的错误(尽管链接到的文章中有暗示):
[airflow@airflowetl dlnfs]$ members
bash: members: command not found
[airflow@airflowetl dlnfs]$ yum info members
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.grid.uchicago.edu
* epel: mirror.sjc02.svwh.net
* extras: mirror.oss.ou.edu
* updates: mirror.siena.edu
maprecosystem 45/45
maprtech 23/23
Error: No matching Packages to list
[airflow@airflowetl dlnfs]$ yum search members
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.grid.uchicago.edu
* epel: mirror.sjc02.svwh.net
* extras: mirror.oss.ou.edu
* updates: mirror.siena.edu
================================ N/S matched: members ================================
python-ordered-set.noarch : A Custom MutableSet that remembers its order
voms.x86_64 : Virtual Organization Membership Service
voms-api-java.noarch : Virtual Organization Membership Service Java API
voms-api-java-javadoc.noarch : Virtual Organization Membership Service Java API
: Documentation
voms-clients-cpp.x86_64 : Virtual Organization Membership Service Clients
voms-clients-java.noarch : Virtual Organization Membership Service Java clients
voms-devel.x86_64 : Virtual Organization Membership Service Development Files
voms-doc.noarch : Virtual Organization Membership Service Documentation
voms-server.x86_64 : Virtual Organization Membership Service Server
Name and summary matches only, use "search all" for everything.
我知道该getent groups <group name>
命令,但只是好奇成员命令在 centos7 上是否真的可用,如果可以,如何获得它(同样,文章暗示可以yum install
编辑该命令)。
该
members
工具曾经由 Debian 开发人员编写,它似乎只以Debian 软件包本身的形式存在——没有单独的“上游”,只有一个 C 文件直接存储在 Debian 软件包中。这并不能完全阻止其他发行版打包它,但实际上很可能没有人发现它足够有用,值得麻烦。它应该被贡献给'shadow'包以与
groups
类似的工具并列。安装它的最简单方法是下载 C++ 源代码(单个 .cc 文件)并编译它——在这种情况下应该很简单:
甚至: