[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Net::FTPServer] Fwd: Net-FTPServer-1.122
From: |
Richard Jones |
Subject: |
[Net::FTPServer] Fwd: Net-FTPServer-1.122 |
Date: |
Tue, 27 Dec 2005 19:10:34 +0000 |
User-agent: |
Mutt/1.5.9i |
----- Forwarded message from address@hidden -----
Subject: Net-FTPServer-1.122
From: a.rod at verizon.net
To: rich at annexia.org
Cc: bbb at cpan.org
Richard Jones (rich at annexia.org)
Rob Brown (bbb at cpan.org)
Richard/Bob,
I am not sure if you are still answering questions on Net-FTPServer-1.122. I
recently downloaded it and started playing with it and I have run into a couple
of problems.
I am attaching copies of the log and the session that generated the logs but I
will also briefly describe what I have found. Any pointers you can provide
would be appreciated.
I am using Net-FTPServer with the Postgres database personality. As you will
see from the copy of the session, this part is working so my questions are not
related to Postgres. For your reference I am using Postres 8.1.1, but because
the general interface appears to work I don't believe what I am seeing is
related to this, but I could be wrong.
I am able to move about the directories created using your example plus I am
able to add new directories. You will note that I added a directory called
Central. I am able to PUT files into this directory.
The first problem I run into is when I try to GET one of those files back using
BINARY mode. When I do I get the following result:
200 TYPE changed to I.
ftp> get FAQ
local: FAQ remote: FAQ
227 Entering Passive Mode (127,0,0,1,210,243)
150 Opening BINARY mode data connection for file FAQ.
421 Service not available, remote server has closed connection
37495 bytes received in 0.192 secs (1.9e+02 Kbytes/sec)
The session is closed and I have to quit ftp in order to get back into it. The
corresponding log entry for this exhange is:
Dec 27 08:11:53 localhost ftpd[4403]: command: (TYPE, I)
Dec 27 08:11:53 localhost ftpd[4403]: reply: 200
Dec 27 08:12:05 localhost ftpd[4403]: command: (PASV, )
Dec 27 08:12:05 localhost ftpd[4403]: reply: 227
Dec 27 08:12:05 localhost ftpd[4403]: command: (RETR, FAQ)
Dec 27 08:12:05 localhost ftpd[4403]: reply: 150
Dec 27 08:12:05 localhost ftpd[4403]: Offset outside string at
/usr/lib/perl5/site_perl/5.8.0/Net/FTPServer.pm line 5448, <STDIN> line 11.
If I instead use ASCII mode, I get the following results:
ftp> asc
200 TYPE changed to A.
ftp> get FAQ_russian
local: FAQ_russian remote: FAQ_russian
227 Entering Passive Mode (127,0,0,1,231,177)
150 Opening ASCII mode data connection for file FAQ_russian.
421 Service not available, remote server has closed connection
With the following corresponding entry in the log:
Dec 27 08:13:09 localhost ftpd[4435]: command: (TYPE, A)
Dec 27 08:13:09 localhost ftpd[4435]: reply: 200
Dec 27 08:13:40 localhost ftpd[4435]: command: (PASV, )
Dec 27 08:13:40 localhost ftpd[4435]: reply: 227
Dec 27 08:13:40 localhost ftpd[4435]: command: (RETR, FAQ_russian)
Dec 27 08:13:40 localhost ftpd[4435]: reply: 150
Dec 27 08:13:40 localhost ftpd[4435]: Can't locate object method "getline" via
package "Net::FTPServer::DBeg1::IOBlob" at
/usr/lib/perl5/site_perl/5.8.0/Net/FTPServer.pm line 5508, <STDIN> line 11.
My final problem is with the implementation of a custom SITE command as per
your example in the manual. I implemented the SITE SHOW command as you
described in the manual and I get the following results:
ftp> ls
227 Entering Passive Mode (127,0,0,1,207,216)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> site show Central
550 SITE SHOW command is only supported on plain files.
ftp> cd Central
250 Changed directory OK.
ftp> site show
550 File or directory not found.
ftp> ls
227 Entering Passive Mode (127,0,0,1,240,219)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
-rw-r--r-- 1 postgres users 112 Jan 1 1970 testarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> site show testarpwd.pl
421 Service not available, remote server has closed connection
ftp> ls
Not connected.
ftp> quit
And the following log entry:
Dec 27 08:17:31 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:17:31 localhost ftpd[4442]: reply: 150
Dec 27 08:17:31 localhost ftpd[4442]: reply: 226
Dec 27 08:17:43 localhost ftpd[4442]: command: (SITE, show Central)
Dec 27 08:17:43 localhost ftpd[4442]: reply: 550
Dec 27 08:17:50 localhost ftpd[4442]: command: (CWD, Central)
Dec 27 08:17:50 localhost ftpd[4442]: reply: 250
Dec 27 08:17:55 localhost ftpd[4442]: command: (SITE, show)
Dec 27 08:17:55 localhost ftpd[4442]: reply: 550
Dec 27 08:17:58 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:17:58 localhost ftpd[4442]: reply: 227
Dec 27 08:17:58 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:17:58 localhost ftpd[4442]: reply: 150
Dec 27 08:17:58 localhost ftpd[4442]: reply: 226
Dec 27 08:18:20 localhost ftpd[4442]: command: (SITE, show testarpwd.pl)
Dec 27 08:18:20 localhost ftpd[4442]: Can't locate object method "getline" via
package "Net::FTPServer::DBeg1::IOBlob" at /usr/local/lib/show.pl line 38,
<STDIN> line 23.
What do you think could be happening? Any suggestions on what I could try?
With best regards,
Adolfo
Dec 27 08:05:46 localhost su(pam_unix)[4393]: session opened for user postgres
by root(uid=0)
Dec 27 08:08:41 localhost ftpd[4395]: Switch error log to /var/log/ftpd.errors
Dec 27 08:08:41 localhost ftpd[4395]: Net::FTPServer/1.122-1
Net::FTPServer::DBeg1/1.1 running daemon background on port 2000
Dec 27 08:08:50 localhost ftpd[4398]: starting child process
Dec 27 08:08:50 localhost ftpd[4398]: in post accept stage
Dec 27 08:08:51 localhost ftpd[4398]: get socket name
Dec 27 08:08:51 localhost ftpd[4398]: get peer name
Dec 27 08:08:51 localhost ftpd[4398]: archive mode enabled [.bz2, .gz, .list,
.zip]
Dec 27 08:08:51 localhost ftpd[4398]: in access control stage
Dec 27 08:08:51 localhost ftpd[4398]: in process limits stage
Dec 27 08:08:51 localhost ftpd[4398]: connection from 127.0.0.1:32873
Dec 27 08:08:51 localhost ftpd[4398]: reply: 220
Dec 27 08:09:02 localhost ftpd[4398]: command: (USER, postgres)
Dec 27 08:09:02 localhost ftpd[4398]: reply: 331
Dec 27 08:09:09 localhost ftpd[4398]: command: (PASS, 123456)
Dec 27 08:09:09 localhost ftpd[4398]: reply: 230
Dec 27 08:09:09 localhost ftpd[4398]: no home directory for user: postgres
Dec 27 08:09:09 localhost ftpd[4398]: command: (SYST, )
Dec 27 08:09:09 localhost ftpd[4398]: reply: 215
Dec 27 08:09:19 localhost ftpd[4398]: command: (PASV, )
Dec 27 08:09:19 localhost ftpd[4398]: reply: 227
Dec 27 08:09:19 localhost ftpd[4398]: command: (LIST, )
Dec 27 08:09:19 localhost ftpd[4398]: reply: 150
Dec 27 08:09:19 localhost ftpd[4398]: reply: 226
Dec 27 08:09:28 localhost ftpd[4398]: command: (CWD, Central)
Dec 27 08:09:28 localhost ftpd[4398]: reply: 250
Dec 27 08:09:35 localhost ftpd[4398]: command: (PASV, )
Dec 27 08:09:35 localhost ftpd[4398]: reply: 227
Dec 27 08:09:35 localhost ftpd[4398]: command: (LIST, )
Dec 27 08:09:35 localhost ftpd[4398]: reply: 150
Dec 27 08:09:35 localhost ftpd[4398]: reply: 226
Dec 27 08:09:41 localhost ftpd[4398]: command: (QUIT, )
Dec 27 08:09:41 localhost ftpd[4398]: reply: 221
Dec 27 08:09:41 localhost ftpd[4398]: connection terminated normally
Dec 27 08:09:54 localhost ftpd[4403]: starting child process
Dec 27 08:09:54 localhost ftpd[4403]: in post accept stage
Dec 27 08:09:54 localhost ftpd[4403]: get socket name
Dec 27 08:09:54 localhost ftpd[4403]: get peer name
Dec 27 08:09:54 localhost ftpd[4403]: archive mode enabled [.bz2, .gz, .list,
.zip]
Dec 27 08:09:54 localhost ftpd[4403]: in access control stage
Dec 27 08:09:54 localhost ftpd[4403]: in process limits stage
Dec 27 08:09:54 localhost ftpd[4403]: connection from 127.0.0.1:32889
Dec 27 08:09:54 localhost ftpd[4403]: reply: 220
Dec 27 08:09:59 localhost ftpd[4403]: command: (USER, postgres)
Dec 27 08:09:59 localhost ftpd[4403]: reply: 331
Dec 27 08:10:02 localhost ftpd[4403]: command: (PASS, 123456)
Dec 27 08:10:03 localhost ftpd[4403]: reply: 230
Dec 27 08:10:03 localhost ftpd[4403]: no home directory for user: postgres
Dec 27 08:10:03 localhost ftpd[4403]: command: (SYST, )
Dec 27 08:10:03 localhost ftpd[4403]: reply: 215
Dec 27 08:10:06 localhost ftpd[4403]: command: (PASV, )
Dec 27 08:10:07 localhost ftpd[4403]: reply: 227
Dec 27 08:10:07 localhost ftpd[4403]: command: (LIST, )
Dec 27 08:10:07 localhost ftpd[4403]: reply: 150
Dec 27 08:10:07 localhost ftpd[4403]: reply: 226
Dec 27 08:10:16 localhost ftpd[4403]: command: (CWD, Central)
Dec 27 08:10:16 localhost ftpd[4403]: reply: 250
Dec 27 08:10:20 localhost ftpd[4403]: command: (PASV, )
Dec 27 08:10:20 localhost ftpd[4403]: reply: 227
Dec 27 08:10:20 localhost ftpd[4403]: command: (LIST, )
Dec 27 08:10:20 localhost ftpd[4403]: reply: 150
Dec 27 08:10:20 localhost ftpd[4403]: reply: 226
Dec 27 08:11:53 localhost ftpd[4403]: command: (TYPE, I)
Dec 27 08:11:53 localhost ftpd[4403]: reply: 200
Dec 27 08:12:05 localhost ftpd[4403]: command: (PASV, )
Dec 27 08:12:05 localhost ftpd[4403]: reply: 227
Dec 27 08:12:05 localhost ftpd[4403]: command: (RETR, FAQ)
Dec 27 08:12:05 localhost ftpd[4403]: reply: 150
Dec 27 08:12:05 localhost ftpd[4403]: Offset outside string at
/usr/lib/perl5/site_perl/5.8.0/Net/FTPServer.pm line 5448, <STDIN> line 11.
Dec 27 08:12:19 localhost ftpd[4435]: starting child process
Dec 27 08:12:20 localhost ftpd[4435]: in post accept stage
Dec 27 08:12:20 localhost ftpd[4435]: get socket name
Dec 27 08:12:20 localhost ftpd[4435]: get peer name
Dec 27 08:12:20 localhost ftpd[4435]: archive mode enabled [.bz2, .gz, .list,
.zip]
Dec 27 08:12:20 localhost ftpd[4435]: in access control stage
Dec 27 08:12:20 localhost ftpd[4435]: in process limits stage
Dec 27 08:12:20 localhost ftpd[4435]: connection from 127.0.0.1:32922
Dec 27 08:12:20 localhost ftpd[4435]: reply: 220
Dec 27 08:12:25 localhost ftpd[4435]: command: (USER, postgres)
Dec 27 08:12:25 localhost ftpd[4435]: reply: 331
Dec 27 08:12:32 localhost ftpd[4435]: command: (PASS, 123456)
Dec 27 08:12:32 localhost ftpd[4435]: reply: 230
Dec 27 08:12:32 localhost ftpd[4435]: no home directory for user: postgres
Dec 27 08:12:32 localhost ftpd[4435]: command: (SYST, )
Dec 27 08:12:32 localhost ftpd[4435]: reply: 215
Dec 27 08:12:37 localhost ftpd[4435]: command: (PASV, )
Dec 27 08:12:37 localhost ftpd[4435]: reply: 227
Dec 27 08:12:37 localhost ftpd[4435]: command: (LIST, )
Dec 27 08:12:37 localhost ftpd[4435]: reply: 150
Dec 27 08:12:37 localhost ftpd[4435]: reply: 226
Dec 27 08:13:01 localhost ftpd[4435]: command: (CWD, Central)
Dec 27 08:13:01 localhost ftpd[4435]: reply: 250
Dec 27 08:13:04 localhost ftpd[4435]: command: (PASV, )
Dec 27 08:13:04 localhost ftpd[4435]: reply: 227
Dec 27 08:13:04 localhost ftpd[4435]: command: (LIST, )
Dec 27 08:13:04 localhost ftpd[4435]: reply: 150
Dec 27 08:13:04 localhost ftpd[4435]: reply: 226
Dec 27 08:13:09 localhost ftpd[4435]: command: (TYPE, A)
Dec 27 08:13:09 localhost ftpd[4435]: reply: 200
Dec 27 08:13:40 localhost ftpd[4435]: command: (PASV, )
Dec 27 08:13:40 localhost ftpd[4435]: reply: 227
Dec 27 08:13:40 localhost ftpd[4435]: command: (RETR, FAQ_russian)
Dec 27 08:13:40 localhost ftpd[4435]: reply: 150
Dec 27 08:13:40 localhost ftpd[4435]: Can't locate object method "getline" via
package "Net::FTPServer::DBeg1::IOBlob" at
/usr/lib/perl5/site_perl/5.8.0/Net/FTPServer.pm line 5508, <STDIN> line 11.
Dec 27 08:13:57 localhost ftpd[4438]: starting child process
Dec 27 08:13:57 localhost ftpd[4438]: in post accept stage
Dec 27 08:13:57 localhost ftpd[4438]: get socket name
Dec 27 08:13:57 localhost ftpd[4438]: get peer name
Dec 27 08:13:57 localhost ftpd[4438]: archive mode enabled [.bz2, .gz, .list,
.zip]
Dec 27 08:13:57 localhost ftpd[4438]: in access control stage
Dec 27 08:13:57 localhost ftpd[4438]: in process limits stage
Dec 27 08:13:57 localhost ftpd[4438]: connection from 127.0.0.1:32946
Dec 27 08:13:57 localhost ftpd[4438]: reply: 220
Dec 27 08:14:02 localhost ftpd[4438]: command: (USER, postgres)
Dec 27 08:14:02 localhost ftpd[4438]: reply: 331
Dec 27 08:14:06 localhost ftpd[4438]: command: (PASS, 123456)
Dec 27 08:14:06 localhost ftpd[4438]: reply: 230
Dec 27 08:14:06 localhost ftpd[4438]: no home directory for user: postgres
Dec 27 08:14:06 localhost ftpd[4438]: command: (SYST, )
Dec 27 08:14:06 localhost ftpd[4438]: reply: 215
Dec 27 08:14:11 localhost ftpd[4438]: command: (PASV, )
Dec 27 08:14:11 localhost ftpd[4438]: reply: 227
Dec 27 08:14:11 localhost ftpd[4438]: command: (LIST, )
Dec 27 08:14:12 localhost ftpd[4438]: reply: 150
Dec 27 08:14:12 localhost ftpd[4438]: reply: 226
Dec 27 08:14:20 localhost ftpd[4438]: command: (CWD, Central)
Dec 27 08:14:20 localhost ftpd[4438]: reply: 250
Dec 27 08:14:21 localhost ftpd[4438]: command: (PASV, )
Dec 27 08:14:21 localhost ftpd[4438]: reply: 227
Dec 27 08:14:21 localhost ftpd[4438]: command: (LIST, )
Dec 27 08:14:21 localhost ftpd[4438]: reply: 150
Dec 27 08:14:21 localhost ftpd[4438]: reply: 226
Dec 27 08:14:24 localhost ftpd[4438]: command: (TYPE, I)
Dec 27 08:14:24 localhost ftpd[4438]: reply: 200
Dec 27 08:15:05 localhost ftpd[4438]: command: (PASV, )
Dec 27 08:15:05 localhost ftpd[4438]: reply: 227
Dec 27 08:15:05 localhost ftpd[4438]: command: (RETR, arpwd.pl)
Dec 27 08:15:05 localhost ftpd[4438]: reply: 150
Dec 27 08:15:05 localhost ftpd[4438]: Offset outside string at
/usr/lib/perl5/site_perl/5.8.0/Net/FTPServer.pm line 5448, <STDIN> line 11.
Dec 27 08:15:58 localhost ftpd[4442]: starting child process
Dec 27 08:15:58 localhost ftpd[4442]: in post accept stage
Dec 27 08:15:58 localhost ftpd[4442]: get socket name
Dec 27 08:15:58 localhost ftpd[4442]: get peer name
Dec 27 08:15:58 localhost ftpd[4442]: archive mode enabled [.bz2, .gz, .list,
.zip]
Dec 27 08:15:58 localhost ftpd[4442]: in access control stage
Dec 27 08:15:58 localhost ftpd[4442]: in process limits stage
Dec 27 08:15:58 localhost ftpd[4442]: connection from 127.0.0.1:32974
Dec 27 08:15:58 localhost ftpd[4442]: reply: 220
Dec 27 08:16:03 localhost ftpd[4442]: command: (USER, postgres)
Dec 27 08:16:03 localhost ftpd[4442]: reply: 331
Dec 27 08:16:07 localhost ftpd[4442]: command: (PASS, 123456)
Dec 27 08:16:07 localhost ftpd[4442]: reply: 230
Dec 27 08:16:07 localhost ftpd[4442]: no home directory for user: postgres
Dec 27 08:16:07 localhost ftpd[4442]: command: (SYST, )
Dec 27 08:16:07 localhost ftpd[4442]: reply: 215
Dec 27 08:16:10 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:16:10 localhost ftpd[4442]: reply: 227
Dec 27 08:16:10 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:16:10 localhost ftpd[4442]: reply: 150
Dec 27 08:16:10 localhost ftpd[4442]: reply: 226
Dec 27 08:16:16 localhost ftpd[4442]: command: (CWD, Central)
Dec 27 08:16:16 localhost ftpd[4442]: reply: 250
Dec 27 08:16:19 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:16:19 localhost ftpd[4442]: reply: 227
Dec 27 08:16:19 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:16:19 localhost ftpd[4442]: reply: 150
Dec 27 08:16:19 localhost ftpd[4442]: reply: 226
Dec 27 08:16:39 localhost ftpd[4442]: command: (TYPE, I)
Dec 27 08:16:39 localhost ftpd[4442]: reply: 200
Dec 27 08:16:39 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:16:39 localhost ftpd[4442]: reply: 227
Dec 27 08:16:39 localhost ftpd[4442]: command: (STOR, testarpwd.pl)
Dec 27 08:16:40 localhost ftpd[4442]: reply: 150
Dec 27 08:16:40 localhost ftpd[4442]: reply: 226
Dec 27 08:16:45 localhost ftpd[4442]: command: (TYPE, A)
Dec 27 08:16:45 localhost ftpd[4442]: reply: 200
Dec 27 08:16:45 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:16:45 localhost ftpd[4442]: reply: 227
Dec 27 08:16:45 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:16:45 localhost ftpd[4442]: reply: 150
Dec 27 08:16:45 localhost ftpd[4442]: reply: 226
Dec 27 08:17:29 localhost ftpd[4442]: command: (CWD, ..)
Dec 27 08:17:29 localhost ftpd[4442]: reply: 250
Dec 27 08:17:31 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:17:31 localhost ftpd[4442]: reply: 227
Dec 27 08:17:31 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:17:31 localhost ftpd[4442]: reply: 150
Dec 27 08:17:31 localhost ftpd[4442]: reply: 226
Dec 27 08:17:43 localhost ftpd[4442]: command: (SITE, show Central)
Dec 27 08:17:43 localhost ftpd[4442]: reply: 550
Dec 27 08:17:50 localhost ftpd[4442]: command: (CWD, Central)
Dec 27 08:17:50 localhost ftpd[4442]: reply: 250
Dec 27 08:17:55 localhost ftpd[4442]: command: (SITE, show)
Dec 27 08:17:55 localhost ftpd[4442]: reply: 550
Dec 27 08:17:58 localhost ftpd[4442]: command: (PASV, )
Dec 27 08:17:58 localhost ftpd[4442]: reply: 227
Dec 27 08:17:58 localhost ftpd[4442]: command: (LIST, )
Dec 27 08:17:58 localhost ftpd[4442]: reply: 150
Dec 27 08:17:58 localhost ftpd[4442]: reply: 226
Dec 27 08:18:20 localhost ftpd[4442]: command: (SITE, show testarpwd.pl)
Dec 27 08:18:20 localhost ftpd[4442]: Can't locate object method "getline" via
package "Net::FTPServer::DBeg1::IOBlob" at /usr/local/lib/show.pl line 38,
<STDIN> line 23.
address@hidden root]# su postgres
bash-2.05b$ /usr/sbin/dbeg1-ftpd.pl -S -d -v -p 2000 -C /etc/ftpd.conf
bash-2.05b$ ftp localhost 2000
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Net::FTPServer/1.122-1
Net::FTPServer::DBeg1/1.1) ready.
Name (localhost:root): postgres
331 Username OK, please send password.
Password:
230 Welcome postgres.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,197,79)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Dec 31 1969 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> cd Central
250 Changed directory OK.
ftp> ls
227 Entering Passive Mode (127,0,0,1,224,171)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> quit
221 Goodbye. Service closing connection.
bash-2.05b$ ls
ls: .: Permission denied
bash-2.05b$ cd /jail
bash-2.05b$ ftp localhost 2000
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Net::FTPServer/1.122-1
Net::FTPServer::DBeg1/1.1) ready.
Name (localhost:root): postgres
331 Username OK, please send password.
Password:
230 Welcome postgres.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,196,211)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Dec 31 1969 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> cd Central
250 Changed directory OK.
ftp> ls
227 Entering Passive Mode (127,0,0,1,224,65)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> bin
200 TYPE changed to I.
ftp> get FAQ
local: FAQ remote: FAQ
227 Entering Passive Mode (127,0,0,1,210,243)
150 Opening BINARY mode data connection for file FAQ.
421 Service not available, remote server has closed connection
37495 bytes received in 0.192 secs (1.9e+02 Kbytes/sec)
ftp> ls
Not connected.
ftp> quit
bash-2.05b$ ftp localhost 2000
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Net::FTPServer/1.122-1
Net::FTPServer::DBeg1/1.1) ready.
Name (localhost:root): postgres
331 Username OK, please send password.
Password:
230 Welcome postgres.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,220,80)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Dec 31 1969 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> cd Central
250 Changed directory OK.
ftp> ls
227 Entering Passive Mode (127,0,0,1,228,108)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> asc
200 TYPE changed to A.
ftp> get FAQ_russian
local: FAQ_russian remote: FAQ_russian
227 Entering Passive Mode (127,0,0,1,231,177)
150 Opening ASCII mode data connection for file FAQ_russian.
421 Service not available, remote server has closed connection
ftp> quit
bash-2.05b$ ftp localhost 2000
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Net::FTPServer/1.122-1
Net::FTPServer::DBeg1/1.1) ready.
Name (localhost:root): postgres
331 Username OK, please send password.
Password:
230 Welcome postgres.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,222,86)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Dec 31 1969 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> cd Central
250 Changed directory OK.
ftp> ls
227 Entering Passive Mode (127,0,0,1,245,253)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> bin
200 TYPE changed to I.
ftp> get arpwd.pl
local: arpwd.pl remote: arpwd.pl
227 Entering Passive Mode (127,0,0,1,254,126)
150 Opening BINARY mode data connection for file arpwd.pl.
421 Service not available, remote server has closed connection
112 bytes received in 0.00419 secs (26 Kbytes/sec)
ftp> quit
bash-2.05b$ ftp localhost 2000
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Net::FTPServer/1.122-1
Net::FTPServer::DBeg1/1.1) ready.
Name (localhost:root): postgres
331 Username OK, please send password.
Password:
230 Welcome postgres.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,202,186)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Dec 31 1969 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> cd Central
250 Changed directory OK.
ftp> ls
227 Entering Passive Mode (127,0,0,1,211,154)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> put testarpwd.pl
local: testarpwd.pl remote: testarpwd.pl
227 Entering Passive Mode (127,0,0,1,234,231)
150 Opening BINARY mode data connection for file testarpwd.pl.
226 File store complete. Data connection has been closed.
112 bytes sent in 3.5e-05 secs (3.1e+03 Kbytes/sec)
ftp> ls
227 Entering Passive Mode (127,0,0,1,231,185)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
-rw-r--r-- 1 postgres users 112 Jan 1 1970 testarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> cd ..
250 Changed directory OK.
ftp> ls
227 Entering Passive Mode (127,0,0,1,207,216)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Central
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Home
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Private
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Test
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 Website
226 Listing complete. Data connection has been closed.
ftp> site show Central
550 SITE SHOW command is only supported on plain files.
ftp> cd Central
250 Changed directory OK.
ftp> site show
550 File or directory not found.
ftp> ls
227 Entering Passive Mode (127,0,0,1,240,219)
150 Opening data connection for file listing.
total 1
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 .
drwxr-xr-x 1 postgres users 1024 Jan 1 1970 ..
-rw-r--r-- 1 postgres users 112 Jan 1 1970 arpwd.pl
-rw-r--r-- 1 postgres users 37495 Jan 1 1970 FAQ
-rw-r--r-- 1 postgres users 42319 Jan 1 1970 FAQ_russian
-rw-r--r-- 1 postgres users 112 Jan 1 1970 origarpwd.pl
-rw-r--r-- 1 postgres users 112 Jan 1 1970 testarpwd.pl
226 Listing complete. Data connection has been closed.
ftp> site show testarpwd.pl
421 Service not available, remote server has closed connection
ftp> ls
Not connected.
ftp> quit
bash-2.05b$
----- End forwarded message -----
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
- [Net::FTPServer] Fwd: Net-FTPServer-1.122,
Richard Jones <=