How do I check if a service is linked to a particular library in Linux?
-
# /usr/bin/ldd /usr/sbin/sshd | grep libwrap libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00ecf000)
This shows that the sshd service is linked to libwrap.a
If the service is not linked to that particular library, not output is displayed:
# /usr/bin/ldd /usr/kerberos/sbin/ftpd | grep libwrap
© Lightnetics 2024