[root@localhost ~]# smbclient //192.168.1.1/opt/caiwu -U user4
Password for [WORKGROUP\user4]:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
1.查看目录权限有没有改成757或755
2.也是卡了我很久的一个 切记smbclient //192.168.1.1/(这里输的是共享 目录名称) -U user4
不是绝对路径
3.selinux. setenfoce 0 更改为permissive(重启失效)或vim /etc/selinux/config 将ELINUX=enforcing 改为disabled或permissive 然后reboot
测试[root@localhost ~]# smbclient //192.168.1.1/123 -U user
Try "help" to get a list of possible commands.
smb: \> 成功