How to find out which network service are NOT linked against libwrap.s / tcpd (TCPWrapper)

tcpd is use as a access control facility for internet services. It can be set up to monitor incoming requests for telnet, sshd, finger, ftp, exec, rsh, rlogin, tftp, talk, comsat and other services that have a one-to-one mapping onto executable files.

These days almost all leading Linux distros network services are linked against libwrap.a in order to take advantage of the tcpwrappers access control facility.

However some time few services (especially third party apps) does not link itself against libwrap.

You can easily find out if particler installed network service is NOT linked against libwrap.s / tcpd using strings command.

strings command print the strings of printable characters in files especially binary files thus strings is mainly useful for determining the contents of non-text / binary files.

For example find out if sshd network service can use tcpd or not:
$ strings $(which sshd)| grep libwrap
libwrap refuse returns

Above output, clearly indicate that sshd is linked against libwrap.s / tcpd (TCPWrapper) service. See how to use tcpd to restrict ssh access.

Sean pointed out ldd command:
$ ldd /usr/sbin/sshd | grep -i libwrapOR# ldd $(which sshd) | grep -i libwrap
Output: => /lib/ (0x40020000)

🐧 Please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • 🐧 nixCraft Sep 12, 2006 @ 19:38

    Thanks for pointing out ldd.

    Appreciate your post.

  • Sean Sep 12, 2006 @ 19:33

    There’s also ldd:

    $ ldd /usr/sbin/sshd | grep wrap => /usr/lib/ (0x00cc3000)


Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @