[791] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

ftpd

daemon@ATHENA.MIT.EDU (Brett David Rosen)
Mon Feb 12 19:06:32 1996

To: netbsd-help@MIT.EDU
Date: Mon, 12 Feb 1996 19:02:31 EST
From: Brett David Rosen <bdrosen@MIT.EDU>

	Using both the ftpd in /usr/libexec/
and the athena ftpd (that i compiled from the athena source tree)
I get the following problem.

logging in as either myself or a local user i can execute the command ls -l
fine and get what I would expect:

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls (269000800 bytes).
total 470
...

226 Transfer complete.
remote: -l
367 bytes received in 0.28 seconds (1.3 Kbytes/s)

However using the ftp or anonymous account i get:

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls (268940105 bytes).
226 Transfer complete.

where i also get the following:

ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
bin
etc
pub
foo
226 Transfer complete.
20 bytes received in 0.007 seconds (2.8 Kbytes/s)

(i changed ls to run send_file_list(".");

instead of retrieve("/bin/ls", ""); to try and debug the problem)

the permissions on the files are:

ls -la
total 6
drwxr-xr-x   6 ftp   mit    512 Feb 11 15:25 .
drwxr-xr-x  12 root  wheel  512 Jan 18 02:28 ..
drwxr-xr-x   2 ftp   mit    512 Dec 18 11:33 bin
drwxr-xr-x   2 ftp   mit    512 Dec 18 11:33 etc
drwxr-xr-x   2 ftp   mit    512 Dec 18 11:33 foo
drwxr-xr-x   2 ftp   mit    512 Feb 11 15:25 pub

Am i doing something wrong or is there something wrong with the ftpd ?

	Brett

home help back first fref pref prev next nref lref last post