Hosts Allow w. SMB 2.0.3 & 2.0.6

Neil Hoggarth neil.hoggarth at
Fri Sep 8 08:39:02 GMT 2000

On Thu, 7 Sep 2000 dclark at wrote:

> I am having trouble getting the hosts allow = variable to operate correctly
> with both of these versions of samba. IP numbers work in these fields, but
> not host names. If I put the host names in the field(s), then I am asked for
> a password. Both machines have no trouble resolving hostnames, and the host
> names show up correctly in smbstatus. Any Ideas? Thanks in Advance!

Are sure the Samba system can reverse resolve an IP number to the
correct hostname, and that you are putting the correct form of the name
in the "hosts allow" field? (perhaps you've put something like "hosts
allow = host" where you actually need something like "hosts allow =", for instance).

The names shown in smbstatus are NetBIOS names, I think, whereas I would
expect hosts allow/deny to use names looked up using the C library
gethostbyaddr() call on the IP address (or similar: information which
will ultimately come from the DNS, or /etc/hosts, or your NIS hosts map,
or whatever).

You don't say what kind of Unix you are using, but if you telnet in from
one of the PCs in question and then use commands like "who", "whoami",
"who am i", "w", "last", etc then you might be able to figure out what
what form of hostname (if any) the Unix machine is able to produce from
your IP number.

Neil Hoggarth                                 Departmental Computer Officer
<neil.hoggarth at>                   Laboratory of Physiology                  University of Oxford, UK

More information about the samba mailing list