gethostbyname problem :(

Andrew Donehue andrew at donehue.net
Fri Feb 14 12:33:51 EST 2003


Hi All!
          I just set-up a chrooted-shell for an ssh user :) All is going 
well, but I am having problems getting wget to work for the user.... It 
is having problems resolving hostnames :( - I thought gethostbyname was 
part of the libc library - but it is not working....(see the list of 
librarys I have in the lib dir for the user below) -

Also - I got nslookup working okay - so things seem to be functioning 
well :) -


(lib dir)
-rwxr-xr-x    1 root     root       440059 Feb 14 10:29 ld-linux.so.2*
-rw-r--r--    1 root     root       624910 Feb 14 11:50 libbind.a
-rw-r--r--    1 root     root       624154 Feb 14 11:50 libbind_r.a
-rwxr-xr-x    1 root     root      5173447 Feb 14 12:09 libc-2.1.3.so*
-rwxr-xr-x    1 root     root      5013283 Feb 14 10:29 libc.so.6*
-rwxr-xr-x    1 root     root        73511 Feb 14 10:30 libcrypt.so.1*
-rwxr-xr-x    1 root     root       897571 Feb 14 11:48 libcrypto.so.0*
-rwxr-xr-x    1 root     root        63739 Feb 14 10:29 libdl.so.2*
-rwxr-xr-x    1 root     root       358750 Feb 14 10:44 libnsl.so.1*
-rwxr-xr-x    1 root     root       232169 Feb 14 10:31 libnss_compat.so.1*
-rwxr-xr-x    1 root     root       251934 Feb 14 10:31 libnss_compat.so.2*
-rwxr-xr-x    1 root     root       234111 Feb 14 10:44 libnss_files.so.2*
-rwxr-xr-x    1 root     root       107432 Feb 14 10:30 libpam.so.0*
-rwxr-xr-x    1 root     root        42590 Feb 14 10:30 libpam_misc.so.0*
-rwxr-xr-x    1 root     root       205955 Feb 14 11:45 libssl.so.0*
-rwxr-xr-x    1 root     root        15595 Feb 14 10:29 libtermcap.so.2*

(and etc dir)

-rw-r--r--    1 root     root           27 Feb 14 11:28 group
-rw-r--r--    1 root     root            8 Feb 14 11:07 hostname
-rw-r--r--    1 root     root          191 Feb 14 12:06 hosts
-rw-r--r--    1 root     root           58 Feb 14 11:40 passwd
-rw-r--r--    1 root     root           77 Feb 14 11:49 resolv.conf

Any advice on how to get gethostbyname working would be greatly 
appreciated :)

Cheers,
         Andrew.



More information about the linux mailing list