Subject: question's about wu-ftpd.. how can i fix this problem..??

From: Chung Jae-youn <[email-masked]>
Date: Sat, 27 Apr 1996 13:06:03 +0900 (JST)

Hi there,
I just installed wu-ftpd-2.4 on hpux 10.01.
But I got a serious problem :(

[hugsvr:crisp(431)]ftp localhost
Connected to localhost.kaist.ac.kr.
$)C
220 hugsvr FTP server (Version wu-2.4(7) 19963b4?y27@O (Ed), ?@HD 12=C14:P10CJ) ready.
Name (localhost:crisp): ftp
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls -al
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
ftp> 

As you see, it doesnot show me the directory or file names at all.
But i can cd to some directory.
What's the problem and how can i fix this problem.. ??

thanx in advance..

---

From: [email-masked]
Date: Sat, 27 Apr 96 11:49:48 0500

When you log in as anonymous, the ftpd does a chroot to the ~ftp directory.  This means that the server can no longer "see" the file system above the ~ftp directory.  That's why you needed to copy a few things into the ~ftp structure (like /etc/{passwd,group}) to get this far.  

You probably need to copy some shared libraries into the ~ftp structure (like ~ftp/usr/lib) in order to allow the ls command to execute after the chroot.  (Alternatively, you may be able to compile a statically linked version of ls.)  You also probably need to get something like a timezone database (perhaps in /usr/share/lib/zoneinfo) copied to the ~ftp structure as well, if you want local time and date to show up in an ls -l command.  

I don't know about HP-UX, but Solaris ships with a nice man page (ftpd) describing this.  The other place this is described is _Managing Internet Information Services_, by Cricket Liu, et al, O'Reilly & Associates, Inc.  This reference is mentioned in the distribution and the FAQ as being indispensible.  

Garry

>220 hugsvr FTP server (Version wu-2.4(7) 19963b4?y27@O (Ed),
>?@HD 12=C14:P10CJ) ready. Name (localhost:crisp): ftp
>226 ]

---

From: [email-masked]
Date: Sat, 27 Apr 96 11:49:48 0500

Garry

>As you see, it doesnot show me the directory or file names at all. But i
>can cd to some directory.