linux访问samba,mount errer 13,mount挂载报错mount error(13): Permission denied

"sec" is the security mode and determines how passwords are encrypted between server and client ( even if you don't require passwords ).

ntlm used to be the default which is why you never had to specify it discretely. Things have moved on however so the default is now ntlmssp. If you are accessing something which doesn't speak ntlmssp you have to override the new default with the old one.

Most NAS devices use older technology so they often require ntlm. If you access an OSX samba share however it requires ntlmssp so before you had to specify that in the mount options but now you don't.

There are winners and losers with every change.

If you run the following command you will see the whole range of sec modes available:

Code:

man mount.cifs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 当出现"mount error(13): Permission denied"错误时,可能有以下几个原因导致。首先,地址拼写错误可能是一个原因。请确保挂载的地址正确,尤其是检查网络路径是否使用了正确的IP地址。其次,用户名或密码错误也可能导致该错误。请检查用户名和密码是否正确,并注意特殊字符需要用双引号包围。另外,防火墙问题也可能导致挂载失败。尝试关闭防火墙并重新挂载。最后,共享安全设置问题也可能是原因之一。您可以通过修改本机策略的安全选项来解决此问题。\[1\] 此外,对于某些NAS设备,可能需要使用ntlm协议进行访问。而对于OSX的Samba共享,需要使用ntlmssp协议。在较旧的内核版本中,默认的安全选项是sec=ntlm,而在v3.8及以后的版本中,默认更改为sec=ntlmssp。\[2\]\[3\]因此,您可能需要根据您的情况调整挂载选项。 希望以上信息能够帮助您解决"mount error(13): Permission denied"错误。如果问题仍然存在,请进一步检查您的设置和配置。 #### 引用[.reference_title] - *1* [Linux: mount error(13): Permission denied 挂载报错的解决措施](https://blog.csdn.net/CIOCC/article/details/121176622)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [mount挂载报错mount error(13): Permission denied](https://blog.csdn.net/weixin_33670352/article/details/116994586)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [使用mount临时挂载出现mount error(13): Permission denied](https://blog.csdn.net/weixin_44657888/article/details/131315845)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值