Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个脚本来创建坐骑。我使用的系统命令是:
sudo /bin/mount -soft -t smbfs -o username='{username}',password='{password}' {server_path} {local_path}
这是一种享受,但问题是……
如果用户名/密码无效。我可以使用卸载命令进行整理。但是,它会破坏盒子上相同 {server_path} 的其他挂载。
有什么想法可以阻止这种情况发生吗?
谢谢
仁
通常,Linux 内核中的 smbfs 模块已被弃用,取而代之的是 cifs 模块。所以我会尝试的第一件事是切换到那个,看看是否能解决你的问题。