360 Secure SkillHub
360 安全技能中心

Sudo Tool

该 Skill 提供 sudo-tool 命令,以 root 或其他用户身份执行系统管理命令,支持 -u 指定用户、-k 重置时间戳、-l 列出允许命令;依赖 /etc/sudoers 授权配置,材料未涉及权限审计、日志记录或输出解析。

dinghaibin
dinghaibin
热度 33.55
最近更新 2026-05-18 11:49:33
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add sudo-tool
Metadata
name
sudo-tool
description
Execute commands with superuser privileges. Use for system administration tasks requiring elevated permissions.

Sudo - Superuser Do

Execute commands with root or other user privileges. Requires proper authorization through /etc/sudoers configuration.

Usage

sudo-tool [options] <command>

Options

  • -u user: Run as specified user (default: root)
  • -k: Reset timestamp timeout
  • -l: List allowed commands

Examples

sudo-tool apt update
sudo-tool -u www-data whoami
sudo-tool -l