mount.cifs permission denied

linux下挂windows的共享目录提示错误。可按下面尝试。

[root@dev ~]# mount.cifs //192.168.9.155/APP /mnt/APP/ -o user=administrator,pass=dsff#$TTT

在检查帐号密码权限无问题时,请在命令后加上sec=ntlm 认证即可。

如果还不行,加上提交格式  iocharset=utf8

另外还有读写权限的问题,记得要加上uid以及gid参数

mount.cifs //192.168.9.155/APP /mnt/APP/ -o user=administrator,pass=dsff#$TTT,gid="",uid="",sec=ntlm

 

附上参数解释

sec=  

  1.      Security mode. Allowed values are:  
  2.   
  3.      ¡¤   none - attempt to connection as a null user (no name)  
  4.   
  5.      ¡¤   krb5 - Use Kerberos version 5 authentication  
  6.   
  7.      ¡¤   krb5i - Use Kerberos authentication and forcibly enable packet signing  
  8.   
  9.      ¡¤   ntlm - Use NTLM password hashing  
  10.   
  11.      ¡¤   ntlmi - Use NTLM password hashing and force packet signing  
  12.   
  13.      ¡¤   ntlmv2 - Use NTLMv2 password hashing  
  14.   
  15.      ¡¤   ntlmv2i - Use NTLMv2 password hashing and force packet signing  
  16.   
  17.      ¡¤   ntlmssp - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP message  
  18.   
  19.      ¡¤   ntlmsspi - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP message, and force  
  20.          packet signing  
  21.   
  22.      The default in mainline kernel versions prior to v3.8 was sec=ntlm. In v3.8, the default  
  23.      was changed to sec=ntlmssp.  
  24.   
  25.      If the server requires signing during protocol negotiation, then it may be enabled  
  26.      automatically. Packet signing may also be enabled automatically if it's enabled in  
  27.      /proc/fs/cifs/SecurityFlags. 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值