ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux/Unix访问Windows的共享文件夹

Linux/Unix访问Windows的共享文件夹

原创 Linux操作系统 作者:fjmingyang 时间:2019-07-10 08:21:06 0 删除 编辑

#sudo smbmount //servername/sharedir /mnt/share -o username=xxx,password=xxx

or

# sudo mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test

You may come across the following problem:

cli_negprot: SMB signing is mandatory and we have disabled it.
22538: protocol negotiation failed
SMB connection failed

The cause of the problem is the default security policy on Windows 2003 Server being set to always encrypt network connections under all circumstances. Whilst this is fine for most clients (especially Windows clients, understandably), the version of SMB that you uses doesn’t support encrypted connections. Apparently this support exists in Samba 3, but not on the version Hoary uses. The solution is to change the security policy to use encryption when it’s available and not otherwise. Here's how.


From Administrative Tools, open Domain Controller Security Settings.
Go to Local Policies then Security Options.

Scroll down to find the entry Microsoft network server: Digitally sign communications (always). Set this to Disabled.

The only thing left to do is to reload the security policy, as changes don’t otherwise take effect for some time. Open up a command window and type:

gpupdate

This will buzz and whirr for a few moments before confirming that the policy has been reloaded. With a bit of luck you should now be able to mount a network share from the Windows 2003 Server on your Box.

补充

7625: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

如果你碰到这个错误,请检查用户名及密码是否正确!

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/1698901/viewspace-103272/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2006-04-03

  • 博文量
    66
  • 访问量
    48394