← 返回 Skills 市场
swor-dart

smb-auto-mount

作者 Sword-Art · GitHub ↗ · v1.0.7 · MIT-0
cross-platform ✓ 安全检测通过
138
总下载
1
收藏
0
当前安装
8
版本数
在 OpenClaw 中安装
/install smb-auto-mount
功能描述
Auto-mount Windows SMB shares on Linux with systemd automount. Credentials entered interactively, never passed via command line. Requires sudo, cifs-utils (m...
安全使用建议
This skill appears to do exactly what it says: create on-demand systemd-mounted SMB shares and store credentials in /etc with root-only permissions. Before using it: (1) read the three scripts fully (they are included) and confirm you are comfortable with the exact changes to /etc/fstab and the creation of /etc/smb-creds-<name>.txt; (2) back up /etc/fstab (the README even suggests this); (3) test with the one-time mount first (mount-smb.sh) before adding persistent entries; (4) run locally from a trusted account — do not grant remote agents or automated services sudo that could run these scripts unattended; (5) after removing a persistent mount, delete its /etc/smb-creds-*.txt; and (6) if you prefer not to keep plaintext credential files under /etc, consider alternative credential storage (system keyring) or use ephemeral mounts. The scripts include input validation and use secure prompts, which is good practice; the main remaining risk is the expected system-level impact of modifying fstab and storing credentials as root-readable files.
功能分析
Type: OpenClaw Skill Name: smb-auto-mount Version: 1.0.7 The smb-auto-mount skill bundle provides scripts for managing SMB shares on Linux. It follows security best practices by using interactive password prompts (read -s) to avoid command-line exposure, creating restricted credential files (mode 600), and using temporary files for smbclient operations. While the scripts require sudo and modify /etc/fstab, these actions are necessary for the stated purpose and are clearly documented in SKILL.md and the script logic (add-to-fstab.sh, mount-smb.sh).
能力评估
Purpose & Capability
Name/description match the included scripts and required tools. Requiring sudo, cifs-utils, and smbclient is appropriate for auto-mounting SMB shares and editing /etc/fstab.
Instruction Scope
SKILL.md instructs the user to run the provided scripts which explicitly prompt for passwords and warn about modifying /etc/fstab. The scripts do modify system-wide configuration and create persistent credential files in /etc; this is expected for persistent mounts but is high-impact and should be reviewed before running.
Install Mechanism
No automated install; the skill is instruction/script-only. That keeps the risk low because nothing is downloaded or written automatically by an installer.
Credentials
No external environment variables or unrelated credentials are requested. The scripts rely on standard sudo-provided SUDO_UID/SUDO_GID values and prompt interactively for passwords, which aligns with the stated design to avoid command-line password exposure.
Persistence & Privilege
The scripts intentionally create persistent state (fstab entries and /etc/smb-creds-*.txt files) and enable systemd automount units; this is coherent with the feature but elevates persistence and must be run with root privileges. The skill itself is not forced-always and does not declare extra privileges, but running the scripts requires sudo.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install smb-auto-mount
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /smb-auto-mount 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.7
Metadata: Fixed required binaries format in description for registry parsing
v1.0.6
Metadata: Added dependencies and system requirements to frontmatter description
v1.0.5
Docs: Added security warnings, removed unsafe password examples, added metadata config
v1.0.4
Security: interactive password input, idempotent fstab, dynamic UID/GID, dependency checks
v1.0.3
Security: sanitize local-name, use -A for smbclient to hide password from ps
v1.0.2
Simplified scripts and docs. Removed AI fluff.
v1.0.1
Security: Use credential files instead of plaintext passwords in fstab. Added Chinese documentation.
v1.0.0
Initial release of smb-auto-mount. - Automatically mount Windows SMB shares on Linux using systemd automount. - Includes scripts for share discovery, persistent fstab configuration, and manual mounting. - Supports on-demand mounting with fast offline timeout handling. - Provides troubleshooting guidance and security recommendations. - Suitable for managing multiple Windows SMB connections from Linux.
元数据
Slug smb-auto-mount
版本 1.0.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 8
常见问题

smb-auto-mount 是什么?

Auto-mount Windows SMB shares on Linux with systemd automount. Credentials entered interactively, never passed via command line. Requires sudo, cifs-utils (m... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 138 次。

如何安装 smb-auto-mount?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install smb-auto-mount」即可一键安装,无需额外配置。

smb-auto-mount 是免费的吗?

是的,smb-auto-mount 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

smb-auto-mount 支持哪些平台?

smb-auto-mount 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 smb-auto-mount?

由 Sword-Art(@swor-dart)开发并维护,当前版本 v1.0.7。

💬 留言讨论