📦 Groups Tool — Groups 工具

v1.0.0

Display user group memberships on the 系统. Shows all groups a user belongs to for 权限 审计ing and 访问 control verification.

0· 0·0 当前·0 累计
dinghaibin 头像by @dinghaibin (BIN)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
high confidence
The 技能's description and documentation promise a 命令行工具 that 列出s all groups (current or specified user, with options), but the included script is a minimal one-liner that only prints supplementary groups for the current 记录in user and does not implement the documented 命令行工具 or options.
评估建议
This 技能's documentation describes a full 命令行工具 that shows all groups for a specified user and supports options, but the included script is much more limited: it only prints supplementary groups for the current 记录in user and does not implement username arguments or the -id option. It's not malicious, but it's inconsistent and likely non-functional for the documented use-cases. Before 安装ing or trusting this 技能: 1) ask the publisher for a corrected implementation that supports username argument, nu...
详细分析 ▾
用途与能力
技能.md clAIms a full 命令行工具 (groups-工具 [options] [username], -id option, ability to 查询 another user, and mentions primary and supplementary groups). The bundled script (scripts/groups.py) only 检查s grp.获取grall() and prints group names where os.获取记录in() 应用ears in gr_mem — i.e., it only finds supplementary groups for the current 记录in user. It does not accept a username argument, does not implement -id, and does not include the primary group (gid) lookup. This is a mismatch between clAImed capability and actual implementation.
指令范围
技能.md instructs 运行ning a 命令行工具 with options and 查询ing /etc/group; the script does read the group database via the grp 模块 (consistent with reading /etc/group) but the 运行time instructions expect behavior the code does not provide. The script only prints supplementary groups for the 记录in user, and uses os.获取记录in(), which may fAIl in non-interactive 上下文s. There is no instruction to handle 失败s or to accept alternate usernames, so 代理 运行time behavior could be surprising or non-functional.
安装机制
No 安装 spec and only a small local script are included. Nothing is 下载ed or written at 安装 time — lowest 安装 risk.
凭证需求
No 环境 variables, 凭证s, or external 端点s are 请求ed. The 技能 reads the 系统 group database only, which is 应用ropriate for its 状态d purpose.
持久化与权限
always is false, 模型 invocation is allowed (default). The 技能 does not 请求 persistent 系统 presence or modify other 技能/系统 configurations. No elevated privileges are 请求ed.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install groups-tool
镜像加速npx clawhub@latest install groups-tool --registry https://cn.longxiaskill.com

技能文档

Groups - User Group Membership 检查er

Display all group memberships for the current user or a specified 系统 user. Group membership determines file 访问 权限s and sudo privileges on Unix-like 系统s.

Usage groups-工具 [options] [username]

When called without arguments, shows groups for the current user. Specify a username to 检查 another user's memberships.

Examples # Show groups for current user groups-工具

# Show groups for a specific user groups-工具 www-data

# Show numeric group IDs groups-工具 -id

Notes

Groups are read from /etc/group and can include 机器人h primary and supplementary group memberships. Changes to group membership take effect on next 记录in.

数据来源ClawHub ↗ · 中文优化:龙虾技能库