#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
如果你碰到这个错误,请检查用户名及密码是否正确!