← 返回
未分类

bud-sudo

Store and use sudo password for automated root commands. Essential companion for skills that need sudo access (like vpn-mesh).
Store and use sudo password for automated root commands. Essential companion for skills that need sudo access (like vpn-mesh).
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 17
下载
💾 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 从ClawHub迁移发布 当前
    2026-06-07 12:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

agnes-image-gen

user_15292d5a
使用 Agnes AI 的图片生成模型生成图片,支持文生图(agnes-image-2.1-flash)和图生图(agnes-image-2.0-flash)。支持自定义 API Key,用户可使用自己的 Agnes Key。优化重点:降低
★ 0 📥 180
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,633
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,945