Thanks for taking a look to my issue and think with me for a solution. I have a samba server on a subnet (2.0 --> 3.255) and within that subnet I can access the server no problem. Also the subnet that lives on the same Core Switch can access the server no problem. Even our Office Subnet can access the system through the firewall with no issue. But when I connect to our VPN network, or when I come from a different office with totally different ranges I cannot access the server. The server responds, and I need to login, but the login is rejected always.

Here is my [global] and [share] section of the smb.conf

        workgroup = localdomain.nmc
        netbios name = AMS-QTGW02
        server string = %h server (Samba %v)
#        hosts allow =
        force user = nobody
        force group = nobody
        force create mode = 0666
        force directory mode = 0777
        create mode = 0666
        directory mode = 0777
        guest account = vimn

        security = user
        passdb backend = tdbsam
        ntlm auth = yes

        log file = /var/log/samba/log.%m
        log level = 2 passdb:5 auth:5
        max log size = 50M

        #Performance Tuning:
        use sendfile = true
        kernel oplocks = no
        strict locking = no

        #FUCK OSX!
        veto files = /.DS_Store/.AppleDesktop/.AppleDB/.AppleDouble/.Temporary Items/
        delete veto files = yes

        printing = cups
        printcap name = cups
        load printers = no
        cups options = raw

        comment = HATCH Storage Share (AutoCleaned 30 Days)
        path = /quantum/AMS-HATCH
        browseable = yes
        writable = yes
        guest ok = yes
        force user = nobody
        force group = nobody
        valid users = @LinuxAdmins, vimn, mll

As you can see I outhashed the line "hosts allow" so that all IP's can access them, later when all is working I would like to limit access through that (or "hosts deny").

The credentials are checked already multiple times, and they are enterred correctly. I red something about samba-winbond for non-domain servers to be disabled, but I did not install it, is there a setting I don't know about that I mis or should use?

In the log file of this session I have this:

[2018/02/19 11:21:07.724423,  5] 
  make_server_info_sam: made server info for user vimn -> vimn
[2018/02/19 11:21:07.724461,  3] 
  check_ntlm_password: sam authentication for user [vimn] succeeded
[2018/02/19 11:21:07.724516,  5] 
  check_ntlm_password:  PAM Account for user [vimn] succeeded
[2018/02/19 11:21:07.724537,  2] 
  check_ntlm_password:  authentication for user [vimn] -> [vimn] -> [vimn] 
[2018/02/19 11:21:07.725216,  5] 
  lookup_global_sam_rid: looking up RID 513.
[2018/02/19 11:21:07.725264,  5] 
  pdb_getsampwrid (TDB): error looking up RID 513 by key RID_00000201.
[2018/02/19 11:21:07.725300,  5] 
  Can't find a unix id for an unmapped group
[2018/02/19 11:21:07.725317,  5] 
  SID S-1-5-21-3363938291-73671434-3978610123-513 belongs to our domain, but 
there is no corresponding object in the database.

Password is authenticated correctly, but still the connection is cut-off.

Thanks a lot people.

edit: added the log section.

1 Answer 1


Nobody supplied an answer, but the problem does not persist anymore.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .