smbclient失败,并显示消息“协议协商失败:NT_STATUS_INSUFFICIENT_RESOURCES”,这是什么意思,以及如何解决?


8

我正在尝试使用smbclient访问Windows共享,并且无论凭据是否正确,都会出现此NT_STATUS_INSUFFICIENT_RESOURCES错误。

该命令用于列出股票:

smbclient -L //computer.domain -U domain/username

它要求输入密码,但输入密码后失败。

如果尝试在其上打开共享,则会发生同样的情况:

smbclient //computer.domain/sharename -U domain/username

我环顾四周,没有发现任何相关信息。其他Samba客户端失败,并显示类似的毫无意义的错误消息。

我可以从Windows 7访问共享。

除了存储在该特定计算机上的共享之外,我还可以从Linux访问其他共享。

那么,如何使用smbclient访问这个有问题的Windows共享呢?可能吗?如果没有,是否有解决方法?

(我正在使用Ubuntu Server 12.04)


smb.conf
6

Answers:


6

问题

在客户中

sudo mount -t cifs -o uid=user,gid=user,username=user,password=password //192.168.0.100/shared /mnt/smb
mount: Cannot allocate memory

smbclient -L pc -U user%password
protocol negotiation failed: NT_STATUS_INSUFFICIENT_RESOURCES

dmesg | tail
…
[49474.230547] CIFS VFS: cifs_mount failed w/return code = -12

重新启动LanmanServer可以解决问题

在服务器中

net stop LanmanServer /y && net start LanmanServer
These workstations have sessions on this server:

192.168.0.100
These workstations have sessions with open files on this server:

192.168.0.100
The following services are dependent on the Server service.
Stopping the Server service will also stop these services.

   HomeGroup Listener
   Computer Browser

The HomeGroup Listener service is stopping.
The HomeGroup Listener service was stopped successfully.

The Computer Browser service is stopping..
The Computer Browser service was stopped successfully.

The Server service is stopping.
The Server service was stopped successfully.

The Server service is starting.
The Server service was started successfully.
net start Browser
The requested service has already been started.
net start HomeGroupListener
The HomeGroup Listener service is starting.
The HomeGroup Listener service was started successfully.

此后smbclient在客户端不返回错误

smbclient -L pc -U user%password
Domain=[PC] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1]
…

客户

客户是

cat /etc/issue
Ubuntu 13.04 \n \l

sudo dmidecode | grep -A2 "Base Board"
   Manufacturer: Intel Corporation
   Product Name: 440BX Desktop Reference Platform

服务器

服务器是

ver
Microsoft Windows [Version 6.1.7601]

dmidecode | grep -A2 "Base Board"
   Manufacturer: ASUSTeK COMPUTER INC.
   Product Name: P8Z77-M PRO
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.