我在 Windows 机器上共享了一个名为 D:\ 的分区,并且在我的 Ubuntu 服务器 12.4 中,我在 fstab 中有这一行来安装它
//10.0.0.39/D$/ /mnt/charles/ cifs user,file_mode=0777,dir_mode=0777,rw,gid=1000,sec=ntlmv2,credentials=/root/creds 0 0
Run Code Online (Sandbox Code Playgroud)
我添加了选项“sec=ntlmv2”,因为每次启动/重新启动我的 ubuntu 时都会出现此消息。
CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from nbtlm to ntlmv2 in kernel realese 3.3
Run Code Online (Sandbox Code Playgroud)
现在我不能用这个“sec=ntlmv2”选项挂载,因为在我看来。
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?提前致谢!
这是 --verbose 的结果,这可以帮助找到问题吗?
root@PITCAIRN:/mnt# mount -t cifs //10.0.39/D$/ /mnt/charles --verbose -ouser=Yamash,sec=ntlmv2
Password:
mount.cifs kernel mount options: ip=10.0.0.39,unc=\\10.0.39\D$,sec=ntlmv2,ver=1,user=Yamash,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Run Code Online (Sandbox Code Playgroud)
--编辑-- Zetrocker 提供了解决方案,我将“sec=ntlmv2”更改为“sec=ntlmssp”,现在它可以正常工作了。
感谢 Zetrocker
尝试这样的事情:
//10.0.0.39/D$ /mnt/charles cifs --verbose user,file_mode=0777,dir_mode=0777,rw,gid=1000,sec=ntlmv2,credentials=/root/creds 0 0
Run Code Online (Sandbox Code Playgroud)
这至少应该更详细一点。
在Stack Overflow 上找到了一个线程
有很多人在安装 cifs-utils 后成功了
代码:
sudo apt-get update
sudo apt-get install cifs-utils
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
29485 次 |
| 最近记录: |