linux挂载windows共享文件夹出错,提示mount error(13): Permission denied

完整的可以工作的命令行:

mount -v -t cifs -o username=clouder,password=123456,iocharset=utf8,sec=ntlm //172.28.127.100/share /mnt/windows

还需要注意的是用户所在 domain , 我这里是系统内建用户,否则要加上 domain , 不然也会报权限问题

 

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

 

转载于:https://www.cnblogs.com/zjd2626/p/7428636.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值