我正在尝试在 CentOS7 上挂载来自 NetApp(版本 8.2.4P6 7-模式)的 CIFS 共享。我尝试了sec=ntlm
哪个假设可以工作,但它说一个无效的参数,如果我将其更改为vers=1.0
我认为服务器会抛出权限拒绝错误,因为它需要身份验证。
它(vers=2.0 -o sec=ntlm)
适用于 RHEL 6.9 kernal 2.6 操作系统
[root@Myhost ~]# mount -v -t cifs -o vers=2.0 -o sec=ntlm -o credentials=/etc/samba/credentials.conf //cifsshare.mydomain.com/Test/V23/Marketing /mnt/test
mount.cifs kernel mount options: ip=10.1.5.21,unc=\\cifsshare.mydomain.com\Test,vers=2.0,sec=ntlm,user=mydomain\username,prefixpath=V23/Marketing,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@Myhost ~]# mount -v -t cifs -o vers=1.0 -o sec=ntlm -o credentials=/etc/samba/credentials.conf //cifsshare.mydomain.com/Test/V23/Marketing /mnt/test
mount.cifs kernel mount options: ip=10.1.5.21,unc=\\cifsshare.mydomain.com\Test,vers=1.0,sec=ntlm,user=mydomain\username,prefixpath=V23/Marketing,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)