Description of problem:
Running RHEL Workstation 7.5, fully patched. Attempting to run "smbclient" tools fails as it cannot find one of its libraries.
Version-Release number of selected component (if applicable):
I did attempt to reinstall both packages to see if it was a broken install. I am unsure exactly when the break occurred as I do not regularly use smbclient.
Steps to Reproduce:
/usr/bin/smbclient: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
Usage: smbclient [-?EgBVNkPeC] ....
It seems this is just a search path issue.
1. echo "/usr/lib64/samba/wbclient" >>/etc/ld.so.conf.d/samba-fix.conf
Please check where the symlink ob libwbclient is pointing to:
krikkit:~ # ll /usr/lib64/libwbclient.so.0*
lrwxrwxrwx 1 root root 19 May 9 16:53 /usr/lib64/libwbclient.so.0 -> libwbclient.so.0.14
lrwxrwxrwx 1 root root 40 May 9 16:53 /usr/lib64/libwbclient.so.0.14 -> /etc/alternatives/libwbclient.so.0.14-64
krikkit:~ # ll /etc/alternatives/libwbclient.so.0.14-64
lrwxrwxrwx 1 root root 45 May 9 16:53 /etc/alternatives/libwbclient.so.0.14-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.14
Make sure sssd-libwbclient is not installed and reinstall libwbclient, then the symlink should be setup correctly.
Many thanks for the quick response, you were correct to point to sssd-lbwbclient as my issue. I removed it and reinstalled libwbclient, after which everything is functional again.
# ls -l /usr/lib64/libwbclient.so.0* /etc/alternatives/libwbclient.so.0.14-64
lrwxrwxrwx. 1 root root 45 May 9 16:27 /etc/alternatives/libwbclient.so.0.14-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.14
lrwxrwxrwx. 1 root root 19 May 9 16:27 /usr/lib64/libwbclient.so.0 -> libwbclient.so.0.14
lrwxrwxrwx. 1 root root 40 May 9 16:27 /usr/lib64/libwbclient.so.0.14 -> /etc/alternatives/libwbclient.so.0.14-64
# alternatives --list | grep samba
libwbclient.so.0.14-64 auto /usr/lib64/samba/wbclient/libwbclient.so.0.14