cancel
Showing results for 
Search instead for 
Did you mean: 

Error loading library files

Gregory Lee
Advisor

Error loading library files

I have installed runsocks RPM on my RH7.1 box which will allow programs like "ssh" and "telnet" to traverse the firewall.

The problem is that I seem to be able to run the program only as root instead of a normal user:

$ /usr/bin/runsocks ssh 192.x.x.x
ssh: error while loading shared libraries: libsocks5_sh.so: cannot open shared object file: No such file or directory

But as root there are no problems:

# /usr/bin/runsocks ssh 192.x.x.x
root@192.x.x.x's password:

Some initial investigation with ldd and ldconfig did not reveal anything unusual. The lib file does exist.

# ls -la /usr/lib/libsocks5_sh.so
-rwxr-xr-x 1 root root 114272 Sep 25 2000 /usr/lib/libsocks5_sh.so


# ldd -v /usr/lib/libsocks5_sh.so
libdl.so.2 => /lib/libdl.so.2 (0x40022000)
libc.so.6 => /lib/libc.so.6 (0x40026000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

Version information:
/usr/lib/libsocks5_sh.so:
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libdl.so.2:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libc.so.6:
ld-linux.so.2 (GLIBC_2.1.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.2) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2

# cat /etc/ld.so.conf
/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/local/lib

I have tried to run "ldconfig" but still no avail.

Clues?
If you're not living on the edge, you're taking up too much space! Anonymous
7 REPLIES
Kodjo Agbenu
Honored Contributor

Re: Error loading library files

Hi,


Have you checked the permissions of /etc/libsocks5.conf file ?

Kodjo
Learn and explain...
Mark Fenton
Esteemed Contributor

Re: Error loading library files

Obvious question unanswered,


what are the permissions on

/usr/bin/runsocks ?

Gregory Lee
Advisor

Re: Error loading library files

The permissions are:

-rwxr-xr-x 1 root root 1202 Sep 25 2000 /usr/bin/runsocks
-rw-r--r-- 1 root root 133 Aug 14 16:06 /etc/libsocks5.conf

If you're not living on the edge, you're taking up too much space! Anonymous
Kodjo Agbenu
Honored Contributor

Re: Error loading library files

Check "ssh" permissions (binary and shared libs).

Try with another networking client software (telnet, ftp).

Run it as root and use "ipcs -a" to check whether libsocks5_sh and/or ssh use shared memory, msg queues or semaphore. Check their permissions.

Good luck.

Kodjo
Learn and explain...
SEGUY
Occasional Visitor

Re: Error loading library files

Hi gregory,

I have the same symptom,
did you find an answer ?

Gregory Lee
Advisor

Re: Error loading library files

:( No luck. I can't figure out which files is preventing users other than root to access 'runsocks'.

I had to configure SUDO in the end for normal users to use 'runsocks'.
If you're not living on the edge, you're taking up too much space! Anonymous

Re: Error loading library files

I think Kodjo Agbenu has a point: look at SSH for the problem. The error message starts with "ssh:" and probably not without a reason. Check whether or not normal users can use SSH (without runsocks). If not, solve that problem and you're probably out of the woods.

If however SSH works fine without runsocks, you should consult your runsocks manuals... Remember, "if anything else fails, read the manual." ;)

Good luck,

Hans
l'apprenti sorcier