360 Secure SkillHub
360 安全技能中心

Id Tool

该 Skill 提供 id-tool 命令,输出当前进程或指定用户的身份信息,包括真实与有效用户 ID、组 ID 及全部附加组成员关系,支持 -u、-g、-G、-n 等选项,可用于权限调试与查看进程安全上下文;实现文件为 scripts/id.py。

dinghaibin
dinghaibin
热度 31.44
最近更新 2026-05-11 17:46:29
分类:安全依赖:代码执行应用场景:调试排错 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add id-tool
Metadata
name
id-tool
description
Display user and group identity information. Shows real and effective user ID, group ID, and supplementary groups for the current process.

ID - User Identity Display

Print user and group identity information including UID (user ID), GID (group ID), and all supplementary group memberships. Essential for permission debugging and understanding process security context.

Usage

id-tool [options] [username]

Without arguments, shows information for the current user. Specify a username to query another user's identity details.

Options

  • -u: Show only effective user ID
  • -g: Show only effective group ID
  • -G: Show all supplementary group IDs
  • -n: Display names instead of numeric IDs

Examples

# Show full identity
id-tool

# Show user ID only
id-tool -u

# Show all groups for user
id-tool -G www-data