使用 cif 进行安装

发布于 2024-10-02 06:40:36 字数 311 浏览 0 评论 0原文

我正在编写一个脚本来创建坐骑。我使用的系统命令是:

sudo /bin/mount -soft -t smbfs -o username='{username}',password='{password}' {server_path} {local_path}

它确实有效,但问题是......

如果用户名/密码无效。我可以使用 unmount 命令进行整理。但是,它会损坏盒子上同一 {server_path} 上的其他安装。

有什么想法可以阻止这种情况发生吗?

谢谢珍

Im writing a script to create mounts. The system command I use is:

sudo /bin/mount -soft -t smbfs -o username='{username}',password='{password}' {server_path} {local_path}

It works a treat, but here's the problem....

If an username/password is not valid. I can tidyup using unmount command. However, it corrupts the other mounts to the same {server_path} on the box.

Any ideas how I can stop this from happening?

Thanks

Jen

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

和影子一齐双人舞 2024-10-09 06:40:36

一般来说,Linux 内核中的 smbfs 模块已被弃用,取而代之的是 cifs 模块。因此,我尝试的第一件事就是切换到那个,看看是否可以解决您的问题。

In general, the smbfs module in the Linux kernel is deprecated in favor of the cifs module. So the first thing I'd try would be to switch to that one, and see if that fixes your issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文