Connecting to Samba shares from a Windows 7 SP1 machine

1

1

I have just configured a Ubuntu server at home, which I have named CRICHTON, running Samba 3.6.3, and created a test share, named Media. Sadly, I can't connect to it from my Windows 7 SP1 machine. I have changed the LAN Manager authentication level to "Send LM & NTLM - use NTLMv2 session security if negotiated" which seems to have helped a lot of people, but to no avail.

I'm on a home network, and I can cheerfully ssh into my server. I can even see the server and shared folder in an Explorer window. I've managed to achieve some success by creating a workgroup, joining it and identifying it in the samba config file, but then only read-only access seems available, and anyway WITHOUT authentication of some kind it's not much use. Right now, without workgroup shenanigans, as soon as I try to open a share I am asked for a login. Particularly, I am asked:

Enter Network Password

Enter your password to connect to: CRICHTON

I enter my user name and password, which is the same as my Samba user name and password. Then the login repeats itself, only this time it prepends my username with the name of my machine, only allowing me to submit a password.

Unfortunately my Windows Networking knowledge is poor. Does anyone have any clues? Is there a step-by-step guide to connecting to Samba from Windows 7 out there somewhere? I've found one that ignores security issues, but that isn't appropriate here.

Guy Davidson

Posted 2013-12-30T17:34:27.560

Reputation: 111

In /etc/smb.conf There is a line "Security = " what is after the equal sign? What kind of password database is it set to? tdbsam,passwd, or other? Try using the samba add user command to see if that helps. smbpasswd -a username
After setting a password try again.
– cybernard – 2013-12-30T17:45:42.643

Whoops the location could also be /etc/samba/smb.conf – cybernard – 2013-12-30T17:56:05.543

security = user passdb backend = tdbsam

Several users already added, none working :-( Thanks for your help! – Guy Davidson – 2013-12-30T17:57:33.480

In smb.conf find [Media] Is one of the entries **read only = No ** another good entry is Browseable = yes additionally: write list = <list of usernames here> – cybernard – 2013-12-30T18:03:18.693

Additionally you need to restart the nmb and smb samba services after making changes to smb.conf – cybernard – 2013-12-30T18:03:59.370

I seem to have access to the folders now, without being a workgroup member, but I still can't write to them. write list was new information, thanks! – Guy Davidson – 2013-12-30T18:06:00.637

When you say access to the folders, which folders because so far we have only dicussed [Media] which is a single folder or are you referring to the subfolders under [Media]? It would be easier if you would post the content of the [Media] and [global] sections. – cybernard – 2013-12-30T18:10:43.850

let us continue this discussion in chat

– Guy Davidson – 2013-12-30T18:12:24.740

Answers

0

Cybernard was able to walk me through this. There were several things wrong, but particularly the share directory was created with unhelpful permissions, the user I was connecting as wasn't a member of the appropriate group, and I hadn't created a write list for the share.

Clearly there is a lot of brittleness between Samba, Linux and Windows 7.

Guy Davidson

Posted 2013-12-30T17:34:27.560

Reputation: 111

please write out how to make it work as a single post so the comments can be deleted – endolith – 2016-09-27T00:40:37.233

Sorry endolith, this was three years ago and I don't have records of the conversation. It took several hours, I can tell you that, and several iterations of conversations. The comments above were only scratching the surface: the discussion in chat was where the revelations were. – Guy Davidson – 2016-09-27T14:30:03.527