SUMMARY: Anonymous FTP (Sol 2.2) not behaving as it should ?

From: Ole Holm Nielsen (ohnielse@fysik.dth.dk)
Date: Mon Nov 01 1993 - 03:51:44 CST


In article 2472@uts.uni-c.dk, ohnielse@fysik.uni-c.dk (Ole Holm Nielsen) writes:
> I have set up anonymous FTP (Solaris 2.2) according to the manual page
> for ftpd. It all works well, except that UID and GID don't get mapped
> to user- and group names when I do a "dir" command:
>
> ftp> dir
> 200 PORT command successful.
> 150 ASCII data connection for /bin/ls (129.142.66.16,2353) (0 bytes).
> total 10
> lrwxrwxrwx 1 0 1 7 Oct 27 08:31 bin -> usr/bin
> dr-xr-xr-x 2 0 0 512 Oct 27 08:42 dev
> dr-xr-xr-x 2 0 0 512 Oct 27 09:21 etc
> drwxr-xr-x 10 234 101 512 Oct 27 08:59 pub
> dr-xr-xr-x 4 0 0 512 Oct 27 08:32 usr

SUMMARY: The answer is to put a whole bunch of libraries into ~ftp/usr/lib.
Anonymous FTP now displays correct user and group info, after I copied
all of these libraries (many more than in ftpd(1m)):

-r-xr-xr-x 1 root root 74476 Mar 27 1993 ld.so.1*
-r-xr-xr-x 1 root root 546860 Mar 27 1993 libc.so.1*
-r-xr-xr-x 1 root root 4776 Mar 27 1993 libdl.so.1*
-r-xr-xr-x 1 root root 14508 Mar 27 1993 libintl.so.1*
-r-xr-xr-x 1 root other 451492 Mar 27 1993 libnsl.so.1*
-r-xr-xr-x 1 root other 70076 Mar 27 1993 libsocket.so.1*
-r-xr-xr-x 1 root root 31248 Mar 27 1993 libw.so.1*
-rwxr-xr-x 1 bin bin 31268 Mar 27 1993 nswcompat.so.1*
-rwxr-xr-x 1 bin bin 8112 Mar 27 1993 nswdns.so.1*
-rwxr-xr-x 1 bin bin 31736 Mar 27 1993 nswfiles.so.1*
-rwxr-xr-x 1 bin bin 40656 Mar 27 1993 nswnis.so.1*
-rwxr-xr-x 1 bin bin 40868 Mar 27 1993 nswnisplus.so.1*
-rwxr-xr-x 1 root other 8720 Mar 27 1993 straddr.so.1*

In addition, for each one (XX.so.1) I have a soft link:

        ln -s XX.so.1 XX.so

I have not tried to prune the list of libraries to the minimum set,
but this setup works for me. The nsw* files made a crucial difference
(we're running NIS+).

Thanks to Mike.Sullivan@Eng.Sun.COM for his assistance.

Ole H. Nielsen
Department of Physics, Building 307
Technical University of Denmark, DK-2800 Lyngby, Denmark
E-mail: Ole.H.Nielsen@fysik.dth.dk
Telephone: (+45) 45 93 12 22 - 3187
Telefax: (+45) 45 93 23 99



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:27 CDT