Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can't connect to Samba running on Raspbian from Windows 7 Home Premium

12 Oct 2017   #1
SeanieOS

Windows 7 Home Premium 64-bit
 
 
Can't connect to Samba running on Raspbian from Windows 7 Home Premium

Hello,

I've spent days on this and hours researching what others have tried but no joy.

I've got Samba 4.5.8-Debian running on Raspbian [GNU/Linux 9.1 (stretch)]. I am trying to connect to a shared folder on the Raspbian OS by connecting from Windows 7 (Home Premium). I get a pop up username/password log-in box but it never authenticates me. I've tried dozens of permutations of the settings in smb.conf and even made registry changes. Nothing has worked!

I have tested accessing the share from an Ubuntu machine and it does authenticate.

Here is my smb.conf file. It does allow an Ubuntu machine access the share but not a Win 7 Home Premium client:

Code:
# Global parameters
[global]
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        usershare allow guests = Yes
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server role = standalone server
        unix password sync = Yes
        dns proxy = No
        idmap config * : backend = tdb

[NextCloudPi]
        path = /var/www/nextcloud/data/admin/files
        create mask = 0770
        directory mask = 0771
        force create mode = 0660
        force directory mode = 0770
        force group = www-data
        read only = No
        valid users = pi
If I put [guest = ok] in the [NextCloudPi] share definition it lets me straight in to the share without prompting for username/pwd and I can then browse the files in the share but I want to get the authentication working.

I checked with smbpasswd and the [pi] Samba user does exist both in Samba and in the Raspbian OS and I even changed the pwd to be sure I am using the correct one from the Windows log-in pop up.

Here is the error I get:



Other things I tried:
1. Updated the /etc/hosts file in Win 7 to map the (fixed) ip address of the pi to its hostname: nextcloudpi
2. Open regedit and navigate to HKLM\SYSTEM\CurrentControlSet\Control\Lsa then choose to create DWORD named LmCompatibilityLevel then set the value to 2 although value 1.
3. HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0

I have also turned on Network discovery, File and Printer sharing with 128 bit encryption.

From my reading there could be a hundred different things that would work for someone else but not for my setup. Nevertheless I would be very grateful for any help or assistance.

Cheers,

SeanieOS


My System SpecsSystem Spec
.
16 Oct 2017   #2
sdowney717

Windows 7 Ultimate x64
 
 

My System SpecsSystem Spec
16 Oct 2017   #3
SeanieOS

Windows 7 Home Premium 64-bit
 
 
Problem Solved

Have I added them to the Samba list? By "them" I suppose you mean the user I am trying to log in to the Samba share with.

From my original post:

Quote:
I checked with smbpasswd and the [pi] Samba user does exist both in Samba and in the Raspbian OS and I even changed the pwd to be sure I am using the correct one from the Windows log-in pop up.
Still though, thank you for responding. I'm surprised at how quiet these forums are. I guess people are slowly migrating to Windows 10.

I had set the DWORD: LmCompatibilityLevel value in HKLM\SYSTEM\CurrentControlSet\Control\Lsa to 2 which made the Win 7 client connect to Samba server on the Raspberry Pi with NTLM encryption but Samba is using SMB3 version of the Samba protocol which only deals with NTLMv2. By setting that Win 7 registry setting to 3 it started working again.

Full details in this far more helpful forum... Can't connect to Samba running on Raspbian from Windows 7 Home Premium

Cheers,

Flex
My System SpecsSystem Spec
.

17 Oct 2017   #4
sdowney717

Windows 7 Ultimate x64
 
 

You can frame your question here too.
or maybe another linux forum.
LinuxQuestions.org
My System SpecsSystem Spec
17 Oct 2017   #5
mrjimphelps

Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)
 
 

Quote   Quote: Originally Posted by SeanieOS View Post
I'm surprised at how quiet these forums are. I guess people are slowly migrating to Windows 10.
In my case, if I haven't posted an answer to someone's question, it's because I don't know the answer.

Your question is about an unusual topic, and perhaps a difficult one. Sometimes networking between Linux and Windows, or Linux and Linux, can be difficult. This is something I'm trying to do on my own network, but so far without success.

I will be keeping up with your question, and any responses, however, because maybe the answer I need will be included in someone's response.

Good luck.

Jim
My System SpecsSystem Spec
Reply

 Can't connect to Samba running on Raspbian from Windows 7 Home Premium




Thread Tools




Similar help and support threads
Thread Forum
Home Premium Samba authentication failure
I've been trying for several months to solve this problem. I have a home office network with a Debian Linux server, which I'm using as a calendar/file/print server, two Linux laptops, one XP machine and one laptop running Windows 7 Home Premium, which came preinstalled on the laptop. When I try...
Network & Sharing
Please help me to connect my Internet to my Windows 7 Home Premium x32
It has no Internet, and I am posting this from an iPad. Please help. If you do, I will be :D UPDATE: Me and my dad plugged in an Ethernet cable and now I am able to browse the Internet on that computer.
Network & Sharing
Win 7 Home - unable to connect to samba server
I am currently installing a Win 7 box. When I first set things up I was able to get onto my Linux server in Network -> , by logging in to Win 7 using the same user name and password set up on the Linux box. A short while later I am unable to connect - I get a dialog prompting me to enter a user...
Network & Sharing
Unable to connect to Linux from my Windows 7 Home and Premium
I am using Windows 7 Home and Premium and I am unable to connect to Linux machine. I am getting the pop up for providing the username and password to connect to Linux Machine but it rejects the same. I had the same issue with Windows 7 Professional and I resolved it through chaging the policy as...
Network & Sharing
Samba shares and Home Premium
Another Samba share problem I'm afraid. Freecom NAS drive. Shares via Samba. I took advantage of the cheap preorder of W7. When it arrives I see it's Home Premium. Doesn't bother me as I'm not doing domain type stuff at home. However, I cannot access the files on my NAS!! Searching...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:54.
Twitter Facebook Google+