← 返回
未分类 中文

Whoami Tool Check

Identity verification utility — validate current user against expected roles, check sudo access, and audit user capabilities. Extended whoami for security an...
身份验证工具 — 根据预期角色验证当前用户,检查sudo权限,审计用户权限。扩展whoami用于安全...
dinghaibin dinghaibin 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 336
下载
💾 0
安装
1
版本
#latest

概述

Whoami Tool Check — Identity & Access Verifier

Extended identity verification: confirm the current user matches an expected role, verify sudo/root access, check group membership for specific capabilities, and audit user-level access for security-sensitive operations.

Quick Start

# Verify current user
whoami-tool-check

# Check if current user has sudo access
whoami-tool-check --sudo

Usage

whoami-tool-check [OPTIONS]

Options:
  --sudo          Check if user has sudo/root access
  --role ROLE     Verify user belongs to a role group (sudo, docker, admin, etc.)
  --capabilities  List all accessible system capabilities
  --audit         Full user audit: uid, gid, groups, sudo, shell, home
  --json          Output as structured JSON
  --check-user USER   Check if a specific user exists and their details

Examples

# Full audit
whoami-tool-check --audit

# Check if user has docker access
whoami-tool-check --role docker

# List all capabilities
whoami-tool-check --capabilities

# Check if another user exists
whoami-tool-check --check-user www-data

# JSON for pipeline ingestion
whoami-tool-check --audit --json

Features

  • Current identity — standard whoami output
  • Sudo access check — passwordless sudo availability
  • Role verification — check group membership for specific roles
  • User audit — comprehensive report (uid, gid, groups, sudo, shell, home dir)
  • User existence — verify other system users
  • JSON output — structured for security audits and automation
  • Exit codes — 0/1 for easy script integration

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 13:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomas-security
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 30,957
dev-programming

Url Shortener

dinghaibin
创建和管理短链接,支持自定义别名和追踪。适用于缩短长链接、创建易记的自定义链接、追踪点击统计等场景。
★ 1 📥 2,630
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,152