cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: uploading / renaming - using anonymous / non anonymous account

From: Erick Nuwendam <erick.nuwendam_at_corobor.com>
Date: Wed, 13 Mar 2002 15:20:39 -0000

The first channel uses an anonymous account with a delivery_path="pub/wmo"
(absolute="/home/ftp/pub/wmo")
The second channel uses account erick with a delivery_path="delivery"
(absolute = /home/erick/delivery")

Here are the traces :

with
sprintf(rnfr_cmd,"RNFR /%s/%s", delivery_dir_path,"tmp_file") ;
sprintf(rnto_cmd,"RNTO /%s/%s", delivery_dir_path,"final_file") ;

I get this :

< 220 messira FTP server (Version 1.1.214.4 Wed Aug 23 03:38:25 GMT 2000)
ready.
> USER anonymous
< 331 Guest login ok, send your complete e-mail address as password.
> PASS anonymous
< 230 Guest login ok, access restrictions apply.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* Connected to localhost (127.0.0.1)
> CWD pub/wmo
< 250 CWD command successful.
> PASV
< 227 Entering Passive Mode (127,0,0,1,194,112)
* Connecting to localhost (127.0.0.1) port 49776
* Connected the data stream!
> TYPE I
< 200 Type set to I.
> STOR msg00000010.tmp
< 150 Opening BINARY mode data connection for msg00000010.tmp.
< 226 Transfer complete.
> RNFR /pub/wmo/msg00000010.tmp
< 220 messira FTP server (Version 1.1.214.4 Wed Aug 23 03:38:25 GMT 2000)
ready.
> USER erick
< 350 File exists, ready for destination name.
> RNTO /pub/wmo/msg00000010
< 331 Password required for erick.
> PASS erick
< 230 User erick logged in.
* We have successfully logged in
> PWD
< 257 "/home/erick" is current directory.
* Entry path is '/home/erick'
* Connected to localhost (127.0.0.1)
> CWD delivery
< 250 CWD command successful.
> PASV
< 227 Entering Passive Mode (127,0,0,1,194,115)
* Connecting to localhost (127.0.0.1) port 49779
* Connected the data stream!
> TYPE I
< 200 Type set to I.
> STOR msg00000001.tmp
< 150 Opening BINARY mode data connection for msg00000001.tmp.
< 250 RNTO command successful.
* Connection (#0) left alive
* Closing live connection (#0)
< 226 Transfer complete.
> RNFR /delivery/msg00000001.tmp
< 550 /delivery/msg00000001.tmp: No such file or directory.
* Connection (#0) left alive

============================================================================
=============================
without the first slash
sprintf(rnfr_cmd,"RNFR %s/%s", delivery_dir_path,"tmp_file") ;
sprintf(rnto_cmd,"RNTO %s/%s", delivery_dir_path,"final_file") ;

I get this :

< 220 messira FTP server (Version 1.1.214.4 Wed Aug 23 03:38:25 GMT 2000)
ready.
> USER anonymous
< 331 Guest login ok, send your complete e-mail address as password.
> PASS anonymous
< 230 Guest login ok, access restrictions apply.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* Connected to localhost (127.0.0.1)
> CWD pub/wmo
< 250 CWD command successful.
> PASV
< 227 Entering Passive Mode (127,0,0,1,194,127)
* Connecting to localhost (127.0.0.1) port 49791
* Connected the data stream!
> TYPE I
< 200 Type set to I.
> STOR msg00000013.tmp
< 150 Opening BINARY mode data connection for msg00000013.tmp.
< 226 Transfer complete.
> RNFR pub/wmo/msg00000013.tmp
< 550 pub/wmo/msg00000013.tmp: No such file or directory.
* Connection (#0) left alive
13/03 15:09:41 [emi_ext.c;341] QUOT string not accepted: RNFR
pub/wmo/msg00000013.tmp
13/03 15:09:41 [NewSig.c;63] Cannot reach ftp_anony : QUOT string not
accepted: RNFR pub/wmo/msg00000013.tmp
13/03 15:09:41 [emi_ext.c;254] RNFR delivery/msg00000001.tmp
13/03 15:09:41 [emi_ext.c;255] RNTO delivery/msg00000001
< 220 messira FTP server (Version 1.1.214.4 Wed Aug 23 03:38:25 GMT 2000)
ready.
> USER erick
< 331 Password required for erick.
> PASS erick
< 230 User erick logged in.
* We have successfully logged in
> PWD
< 257 "/home/erick" is current directory.
* Entry path is '/home/erick'
* Connected to localhost (127.0.0.1)
> CWD delivery
< 250 CWD command successful.
> PASV
< 227 Entering Passive Mode (127,0,0,1,194,130)
* Connecting to localhost (127.0.0.1) port 49794
* Connected the data stream!
> TYPE I
< 200 Type set to I.
> STOR msg00000001.tmp
< 150 Opening BINARY mode data connection for msg00000001.tmp.
< 226 Transfer complete.
> RNFR delivery/msg00000001.tmp
< 550 delivery/msg00000001.tmp: No such file or directory.
* Connection (#0) left alive
13/03 15:09:41 [emi_ext.c;341] QUOT string not accepted: RNFR
delivery/msg00000001.tmp
13/03 15:09:41 [NewSig.c;63] Cannot reach ftp_noanony : QUOT string not
accepted: RNFR delivery/msg00000001.tmp

The idea is to avoid using absolute path for confidentiality purpose.
Thanks.

erick nuwendam
Received on 2002-03-13