Linux – Cannot log in to Samba shares on Windows from different domain

linuxnetworkingsambawindows 7

I'm trying to connect to a Samba share on a VirtualBox'ed Windows 7 that is connected to an openSUSE host in bridged mode. For reasons beyond my comprehension I cannot use the shared folders feature, so I'm using Samba instead.

I configured a share through openSUSE's Samba server configuration tool:

[iTunes]
        inherit acls = Yes
        path = /home/myusername/iTunes
        read only = No
        valid users = myusername

I also set a password for this user using smbpasswd -a myusername. I can go to smb://192.168.1.6 on the host machine and log in to the share successfully, but on Windows 7 I see this:

Samba error

What am I doing wrong? I can connect to the shares list without any problems. It's just the login that doesn't work.


Update: I noticed that my Samba server is part of the WORKGROUP domain.

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64]                                                                                                                     

        Sharename       Type      Comment                                                                                                                                                            
        ---------       ----      -------                                                                                                                                                            
        iTunes          Disk                                                                                                                                                                         
        IPC$            IPC       IPC Service (Samba 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64)                                                                                                           
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64]                                                                                                                     

        Server               Comment                                                                                                                                                                 
        ---------            -------                                                                                                                                                                 

        Workgroup            Master                                                                                                                                                                  
        ---------            -------     

However, when I have to log in on Windows I see this…

Samba login

Is this a problem? If so, how do I route around this?

Best Answer

People in #samba on irc.freenode.net recommended that I create an account on the server with the same username and password as the client I'm logging in with.

While this is not an ideal solution, I will use this method until someone can tell me how I can log in with my own account. Being able to log in with my own account would eliminate a lot of annoying file privilege administration.

Related Question