[TriLUG] hosts.deny question?

Owen Berry oberry at trilug.org
Tue Mar 7 09:27:49 EST 2006


On Tue, Mar 07, 2006 at 08:58:40AM -0500, Pat Regan wrote:
> Alan Porter wrote:
> > WA Brown wrote:
> > 
> >> Someone said that the server should use tcp wrappers. How can I find 
> >> out if it does?
> > 
> > 
> > There's no magic command for this.  But this trick works.
> > 
> > # strings -f yourbinaryfile | grep hosts_access
> > 
> > If the binary has been compiled against libwrap.a, you'll
> > see at least one line of output with a matched string.
> 
> That will probably get the job done, but it would probably be better to do:
> 
> ldd <binary> | grep libwrap
> 
> Pat

Unless it's statically linked.

Owen




More information about the TriLUG mailing list