Display user group memberships on the system. Shows all groups a user belongs to for permission auditing and access...
Display user group memberships on the system. Shows all groups a user belongs to for permission auditing and access control verification.
Display all group memberships for the current user or a specified system user. Group membership determines file access permissions and sudo privileges on Unix-like systems.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: groups-tool
description: Display user group memberships on the system. Shows all groups a user belongs to for permission auditing and access control verification.
---
# Groups - User Group Membership Checker
Display all group memberships for the current user or a specified system user. Group membership determines file access permissions and sudo privileges on Unix-like systems.
## Usage
```bash
groups-tool [options] [username]
```
When called without arguments, shows groups for the current user. Specify a username to check another user's memberships.
## Examples
```bash
# Show groups for current user
groups-tool
# Show groups for a specific user
groups-tool www-data
# Show numeric group IDs
groups-tool -id
```
## Notes
Groups are read from /etc/group and can include both primary and supplementary group memberships. Changes to group membership take effect on next login.
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。