Subject: Re: NetBSD samba-2.2.5 \\Brutus not accessible
To: None <netbsd-help@netbsd.org>
From: Keith Mastin <kmastin@beechtree.ca>
List: netbsd-help
Date: 08/27/2002 15:32:12
>On Tue, 27 Aug 2002, Keith Mastin wrote:
>
>> [2002/08/27 03:45:31, 0] lib/access.c:check_access(333)
>>   Denied connection from  (192.168.0.127)
>
>> I did a google search for lib/access.c:check_access(333) which referred to
>> tcp_wrappers. Problem: tcp_wrappers-7.6.1nb1 is not available for
>> NetBSD-1.5.2-i386. So access is denied....
>
>That NetBSD version has TCP Wrappers libraries already installed.
>
>But I don't think Samba is built with libwrap support. (And your example
>indicates that this is not being blocked by tcp wrappers via inetd.)
>
>But if yours is using libwrap, then look at your /etc/hosts.deny and
>/etc/hosts.allow files and also look at hosts_access(5) and
>hosts_options(5) manual pages.

Hi Jeremy,

I don't have either hosts.allow or hosts.deny files. Was the first thing I 
looked for. I have the man pages for them though...
bash-2.05# locate hosts.allow
/usr/share/man/cat5/hosts.allow.0
/usr/share/man/man5/hosts.allow.5

I do have the libwrap libraries:
bash-2.05# locate libwrap
/usr/lib/libwrap.a
/usr/lib/libwrap.so
/usr/lib/libwrap.so.0
/usr/lib/libwrap.so.0.2
/usr/lib/libwrap_p.a
/usr/lib/libwrap_pic.a

So I made both files, restarted inetd... Still frustrated.
Here's /etc/hosts.allow, made from a linux template:
ALL: 192.168.0.0/255.255.255.0

/etc/hosts.deny:
ALL: ALL

It should work, no?

Thanks
-- 
Keith Mastin       BeechTree Information Technology Services Inc.
137 Laird Drive    Toronto    M4G 3V5     http://www.beechtree.ca
  (416)696-6070      Fax(416)696-6072      kmastin@beechtree.ca