如何修复 CIFS/SMB 挂载错误: VFS: \\... Send error in SessSetup = -13

问题:

尝试在 Linux 上挂载 SMB 共享时,mount 命令失败并显示

mount_error_output.txt
mount: /nas: cannot mount //10.1.2.3/myshare read-only.

dmesg 显示以下错误消息:

dmesg_cifs_errors.txt
[  689.574128] CIFS: Attempting to mount \\10.1.2.3\myshare
[  689.621472] CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
[  689.621483] CIFS: VFS: \\10.1.2.3 Send error in SessSetup = -13
[  689.621503] CIFS: VFS: cifs_mount failed w/return code = -13

解决方案

错误 -13 表示你缺少 cifs-utils 包。

使用以下命令安装

install_cifs_utils.sh
sudo apt -y install cifs-utils

Check out similar posts by category: Linux