Samba can't connect to Windows 7 shares 12.3

After 2 days of trying everything what i found on google and on this forum, I finally give up. That’s why I decided to open this thread.
I have opensuse 12.3 and this samba components:

linux:~ # rpm -qa | grep sambasamba-3.6.12-59.2.1.i586
yast2-samba-client-2.23.2-1.1.1.noarch
yast2-samba-server-2.23.2-1.1.1.noarch
kdebase3-samba-3.5.10.1-50.1.2.i586
samba-krb-printing-3.6.12-59.2.1.i586
samba-client-3.6.12-59.2.1.i586

Here’s my smb.conf file http://pastebin.com/raw.php?i=EWA3cTwT
I tried everything under the [global] options but no luck.
Machine which I’m trying to connect on is Win7 Ultimate 64bit and from there I can access my samba shares on computer with opensuse.
From linux I can only see which shares are available on windows machine, but when I try to access them it keeps prompting for credentials. Even when I enter valid credentials, I cannot access. I tried setting windows to allow annonymous access but same thing happens.
What I am doing wrong? Please help.

On 3/31/2013 2:26 PM, m1losh wrote:
>
> After 2 days of trying everything what i found on google and on this
> forum, I finally give up. That’s why I decided to open this thread.
> I have opensuse 12.3 and this samba components:
>
> Code:
> --------------------
> linux:~ # rpm -qa | grep sambasamba-3.6.12-59.2.1.i586
> yast2-samba-client-2.23.2-1.1.1.noarch
> yast2-samba-server-2.23.2-1.1.1.noarch
> kdebase3-samba-3.5.10.1-50.1.2.i586
> samba-krb-printing-3.6.12-59.2.1.i586
> samba-client-3.6.12-59.2.1.i586
> --------------------
>
> Here’s my smb.conf file http://pastebin.com/raw.php?i=EWA3cTwT
> I tried everything under the [global] options but no luck.
> Machine which I’m trying to connect on is Win7 Ultimate 64bit and from
> there I can access my samba shares on computer with opensuse.
> From linux I can only see which shares are available on windows
> machine, but when I try to access them it keeps prompting for
> credentials. Even when I enter valid credentials, I cannot access. I
> tried setting windows to allow annonymous access but same thing happens.
>
> What I am doing wrong? Please help.
>
>
m1losh;

Your smb.conf seems to have a lot of unneeded parameters(ldap,kerberos). But that is not likely the cause of your
problem. However, you should look over this HowTo:
http://opensuse.swerdna.org/suselanprimer.html

As for Windows 7, the username/password needed is that of Win7. You should read the following to configure Windows 7:
http://opensuse.swerdna.org/susesambawin7.html

It really helps, but is not necessary, if your Windows user name is the same as your openSUSE user and password is the
same as the password you set with “smbpasswd -a”

Both articles by Swerdna are a bit long in the tooth, but not much has changed for workgroups in a long time. (I am
assuming there is no AD involved.) You should also uninstall samba-krb-printing. Otherwise normal smb printing will not
work. If there is an AD involved please post back.


P.V.
“We’re all in this together, I’m pulling for you” Red Green

On 3/31/2013 7:02 PM, PV wrote:
<snip>
>
I almost forgot, jdmcdaniel3 has published this tool to help in configuration:
https://forums.opensuse.org/blogs/jdmcdaniel3/sact-samba-automated-configuration-tool-version-1-02-124/


P.V.
“We’re all in this together, I’m pulling for you” Red Green

I have read some of the articles written by Swerdna but obviusly I have skipped something. I thought maybe there is a bug in this new version of openSUSE regarding samba connecting to windows machines. I will try to start over from begining and I i hope that I will get it to work.

I tried configuring samba from scratch and again i have password prompt everytime I want to access my shares on win7. I have set that everyone can access win7 shares and that doesnt help. I even configured network security in windows to allow annonymous logon, but that doesnt help too. I have also tried setting in Local Security Policy in win7:

"Network security: LAN Manager authentication level" -> Send LM & NTLM responses"
Minimum session security for NTLM SSP" -> unchecked: Require 128-bit encryption

Here is my new smb.conf [global] part:

[global]
    workgroup = MSHOME
    passdb backend = tdbsam
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
;    logon path = \\%L\profiles\.msprofile
;    logon home = \\%L\%U\.9xprofile
;    logon drive = P:
    usershare allow guests = Yes
    netbios name = komp
    usershare max shares = 100
    wins support = No
    name resolve order = bcast host lmhosts wins
    wins server = 
    local master = yes
    preferred master = yes
    os level = 65

Any help would be apreciated

On 4/1/2013 6:26 PM, m1losh wrote:
>
> I tried configuring samba from scratch and again i have password prompt
> everytime I want to access my shares on win7. I have set that everyone
> can access win7 shares and that doesnt help. I even configured network
> security in windows to allow annonymous logon, but that doesnt help too.
> I have also tried setting in Local Security Policy in win7:
>
> Code:
> --------------------
> “Network security: LAN Manager authentication level” → Send LM & NTLM responses"
> Minimum session security for NTLM SSP" → unchecked: Require 128-bit encryption
> --------------------
>
>
> Here is my new smb.conf [global] part:

<snip>
>
> Any help would be apreciated
>
>
m1losh;

Have you allowed all three of these through your firewall: Netbios Server, Samba Client, and Samba Server?
Have you made sure that print and file sharing are allowed through any Windows Firewall?
Have you made sure that all your machines are in the same workgroup (MSHOME)?
Can you access Samba shares from Windows?
You see the shares with smbclient?


smbclient -L <MachineNameOrIP> -U<WindowsUser>%<WinUserPasswd>


P.V.
“We’re all in this together, I’m pulling for you” Red Green

I am thinking you have not read through my blog post on the subject. If you are willing to start over on your openSUSE setup, have a look here: S.A.C.T. - Samba Automated Configuration Tool - Version 1.03 - Blogs - openSUSE Forums

Thank You,

On 2013-04-02, jdmcdaniel3 <jdmcdaniel3@no-mx.forums.opensuse.org> wrote:
> I am thinking you have not read through my blog post on the subject.
> If you are willing to start over on your openSUSE setup, have a look
> here: ‘S.A.C.T. - Samba Automated Configuration Tool - Version 1.03 -
> Blogs - openSUSE Forums’ (http://tinyurl.com/dxmzeaq)
>
> Thank You,

Combine YaST with YaJW (Yet Another James Wizard) and you’ll never need to touch command line again :D.

However, I wonder if there’s ever any reason to prefer smb to cifs? Using cifs, I’ve always found it incredibly
straightforward to access Windows Samba shares from within openSUSE. You only have to enable cifs in YaST’s System
Services (runlevel), specify the mount point and credentials in /etc/fstab, and occasonally (depending on which openSUSE
release) throw in a `mount -a’ in /etc/init.d/after.local (it seems some releases invoke fstab before initialising the
cifs daemon).

One of the issues with samba is that the networking does not start soon enough. Don’t know if that’s the problem here, but you’d better exclude it from the possible causes.
Yast - Network devices - Network settings
Select the wired card, click Edit
In the General Tab, change “At cable connection” to “At boottime”. Reboot and see if things improve.

Hi all, thanks for your replies and sorry for delay in my posts. I was busy so I couldnt answer earlier.

@venzkep:
I have disabled firewall on both machines for just in case, when I started to setup samba.
Both machines are in the same workgroup.
I can access samba shares from windows.
I see the shares with smbclient.

@jdmcdaniel3:
I read your blog post about S.A.C.T. and I used it when I started over with samba configuration, but I have added some lines in smb.conf which i found on Swerdna’s site. I already had users in my samba database so I skiped that part. I have also configured samba services to be enabled and started them.

[size=3]@[/size]flymail
[size=3]I tried with cifs too. I have a gui tool called samba4k in which I have option to mount windows shares. But again, it prompts for username and password and when i enter them it pops up again. In my logs i see nt logon failure, even though credentials entered are correct.

@[/size]Knurpht
I already had networking set up to start at boot time.

On 4/4/2013 4:46 AM, m1losh wrote:
>
> Hi all, thanks for your replies and sorry for delay in my posts. I was
> busy so I couldnt answer earlier.
>
> @venzkep:
> I have disabled firewall on both machines for just in case, when
> I started to setup samba.
> Both machines are in the same workgroup.
> I can access samba shares from windows.
> I see the shares with smbclient.
>
> @jdmcdaniel3:
> I read your blog post about S.A.C.T. and I used
> it when I started over with samba configuration, but I have added some
> lines in smb.conf which i found on Swerdna’s site. I already had users
> in my samba database so I skiped that part. I have also configured samba
> services to be enabled and started them.
>
> @flymail
> I tried with cifs too. I have a gui tool called samba4k
> in which I have option to mount windows shares. But again, it prompts
> for username and password and when i enter them it pops up again. In my
> logs i see nt logon failure, even though credentials entered are
> correct.
>
> @Knurpht
> I already had networking set up to start at boot time.
>
>
m1losh;

If you can see the shares via smbclient, just how are you trying to access the shares? What version of openSUSE? Which desktop
and browser? When asked for credentials have you provided a valid Windows7 User and associated password? Did you configure the
Windows 7 machine as per the Howto on Swerdna’s site?


P.V.
“We’re all in this together, I’m pulling for you” Red Green

I tried entering credentials from 2 accounts which I have on Win7 machine. One of them doesnt have password so I made another with password just to be sure if that is a cause. I also enabled Guest account on Win7 machine and nothing happened when I was entering any of those 3 choices. I also tried entering credentials from samba users base but that didnt helped too.
I’m running openSUSE 12.3 with default kernel. KDE platform 4.10.00 release 1. Im accessing the shares via Dolphin.
Anyway, I tried again to access the shares and for some reason it worked with account from Win7 which have no password. I guess it took time for network to work…

On 4/4/2013 4:16 PM, m1losh wrote:
>
<snip>
> Anyway, I tried again to access the shares and for some reason it
> worked with account from Win7 which have no password. I guess it took
> time for network to work…
>
>
m1losh;

Glad to hear it’s now working well for you. Please post back if the problem reoccurs.


P.V.
“We’re all in this together, I’m pulling for you” Red Green