PDA

View Full Version : SMB / CLI: Can't mount win2K3 share



BertG
December 18th, 2004, 12:38 AM
Hey,

I'm new to the Ubuntu scene and I must say: i like it.
Install went a lot easyer than Gentoo! :)

Now I'm having a problem, and I think i have narrowd it down allready

so here it is.
I'd like to mount a shared folder on my win 2k3 server, so i can play it's music
I can reach the map, no problem there, but my server won't allow the mounting
hence the next error:

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

now i got so far figuring out that i have to do something with the kernel and adding CLI to it or something...

Can annyone help me?

thx!

nianhbg
May 20th, 2005, 08:21 AM
Hi i got a simulare problem with my windows 2003 server

I can connect to my server with smb commands in natulus
like smb://server/share i can even add a username like
smb://username@server/share and then enter a password
on password protected shares.

In xterm when i try to map a share like this

<code>
sudo mount //192.168.0.2/share /media/share
</code>

then i got a time out message on port 445 or 113


Best Regaards

Nicklas

Blues-
June 22nd, 2005, 02:48 PM
Yeap .. that is an annoying problem ..
but here is the answer.

In a nutshell, 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 Panther 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.

durandal
June 28th, 2005, 02:50 AM
I just installed the latest Ubuntu release yesterday and I am trying to get it integrated with the network at my office. I am running into the same issue when I try the "Connect to Server" option. It connects to the server but it just keeps kicking back the password screen. I found a post in the FAQ that said to enter the servername/share in the server name field and that didn't work as well.

Blues - Your post looked promising but I don't see the option in the Administration control panel that you are referring too?

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

Has this control panel changed to something else or is it not installed by default????

GregW
July 21st, 2005, 11:35 PM
Has this control panel changed to something else or is it not installed by default????

Hi durandal,

I doubt it, you will need to use the cifs module if you want to mount w2k3 shares, CIFS supports smb signing so you dont need to drop the security on your server.

try mount -t cifs //yoursever/yourshare /mnt/somepath -o username=validserveraccount

and then your password.

You may need to specify the fqdn for yourserver or just add the netbios name and ip address to your host file.

Hopefully bobs your uncle and your in business \\:D/

(You will also need to update the samba debs from the backports, I've got this line in my apt sources file /etc/apt/sources.list


deb ftp://ftp2.caliu.info/backports/ hoary-backports main universe
GregW

gruvsf
December 1st, 2005, 08:21 PM
GregW-
You rock! That totally did it in FC4 and I didn't have to drop the security on Win2k3....I just joined this forum and will be checking it more now for resources.

Hans

Benny_Blanc0
May 19th, 2006, 09:21 AM
Another two thumbs up Greg. Cheers mate.
:D

cewan
May 8th, 2007, 01:20 PM
You da man, GregW! Thanks alot :-)

Rimfrost
January 14th, 2008, 09:48 AM
Greeting and many thanks to you, Greg, for saving the day. Cheers!