← 返回
未分类 中文

Bud Sudo Tool

Store and use sudo password for automated root commands. Essential companion for skills that need sudo access (like vpn-mesh).
存储并使用 sudo 密码执行自动化 root 命令,是需要 sudo 访问的技能(如 vpn‑mesh)的必备伴侣。
stigg86
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 97
下载
💾 0
安装
1
版本
#latest

概述

Sudo Tool 🔐

Securely store your sudo password for automated root commands. No more re-entering passwords for every sudo call.

Essential for skills that need elevated permissions — like vpn-mesh which installs WireGuard automatically.


Setup (One-time)

# Configure your sudo password (one-time only)
sudo-tool setup

You'll be prompted to enter your sudo password. It's encrypted with OpenSSL and stored in ~/.openclaw/sudo-tool/ — never in plaintext.


Usage

# Check if configured
sudo-tool status

# Run any command with sudo
sudo-tool apt update
sudo-tool apt install wireguard-tools
sudo-tool systemctl restart nginx

# Reset (remove stored password)
sudo-tool reset

How It Works

  1. Setup — encrypts your password with OpenSSL (AES-256-CBC) using a random salt, stores in ~/.openclaw/sudo-tool/.password.enc
  2. Use — decrypts password and pipes to sudo -S (reads from stdin)
  3. Secure — password never appears in process list, temp files are deleted immediately

Security Notes

  • Password is encrypted with a random salt — not recoverable without your system
  • Uses OpenSSL PBKDF2 for key derivation (100k iterations)
  • No plaintext passwords stored anywhere
  • Temp files deleted immediately after use

Required By

  • vpn-mesh — needs sudo to auto-install WireGuard

Files

~/.openclaw/sudo-tool/
├── .password.enc   # Encrypted password
├── .salt           # Random salt for encryption
└── sudo-tool.sh     # The tool itself

Add to PATH with:

echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
ln -s ~/.openclaw/sudo-tool/sudo-tool.sh ~/bin/sudo-tool

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-06 07:17

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

Betting Research

stigg86
多源体育博彩研究工具,聚合赔率、球队状态、往绩交锋、天气情况和伤病数据,以发现价值投注机会。
★ 0 📥 372

Fridge Chef

stigg86
识别冰箱食材,标记即将过期物品,推荐3-5道使用现有食材的简易菜谱,并可根据需求提供详细烹饪步骤。
★ 0 📥 138

Bud Semantic Memory

stigg86
针对OpenClaw记忆的基于向量语义搜索。索引记忆文件,实现基于含义而非关键词匹配的搜索。使用ChromaDB进行本...
★ 0 📥 139