I can change to upper level directory when I use the following "my new setting".
For easy reference, below is my old and new setting.
My old setting (cannot change to upper level directory):
delegated -P188.8.131.52:21,184.108.40.206:990 SERVER=ftps RELIABLE="*" LOGFILE=/var/log/delegate/server.log PROTOLOG='' MOUNT="/* sftp://myunix/*" ADMIN=root@test <mailto:ADMIN=root@test> CACHE=no REMITTABLE="*" STLS='-fcl,sslway -cert /etc/cert/myunix-ssl.crt -key /etc/cert/myunix.key' TLSCONF="shutdown"
My new setting (can change to upper level directory):
delegated -P220.127.116.11:21,18.104.22.168:990 SERVER=ftp://myunix/ ADMIN=root@test <mailto:ADMIN=root@test> CACHE=no REMITTABLE="*" STLS='-fcl,sslway -cert/etc/cert/myunix-ssl.crt -key /etc/cert/myunix.key' TLSCONF="shutdown"
For the new setting, although I can change to upper level directory, I still encounter some problems, would you pls help to give comments on the following questions.
1. When I use ftps to login the proxy delegate server, I find that the cert is not my specified one. It seems that the cert is from the source binary. (As the cert owner is " Yutaka Sato")
So how can I use my cert if I use "my new setting" ?
2. For my old setting, can I NOT specify the "mount" ? Because if I use "mount", I cannot change to upper level directory. Is it possible if I use "server=ftps" AND "NOT use mount"??
From: Yutaka Sato [mailto:email@example.com]
Sent: 2008/12/31 [ャPエチ、T] 13:40
Cc: WONG, Wai Bun Ada
Subject: Re: [DeleGate-En] Cannot list upper level file/directory
In message <_A4319@delegate-en.ML_> on 12/31/08(12:46:42)
you "WONG, Wai Bun Ada" <firstname.lastname@example.org> wrote:
|My unix sftp server is connected to proxy ftp delegate server. However, after I login my home directory, I cannot change directory to upper level.
It is the behavior of DeleGate, to cope with gatewaying FTP to HTTP
clients, to keep the mapping of MOUNT consistent, and also a little
from a security consideration. But you should be able to change to
an upper directory with its absolute path as "/tmp".
|Below is my server setting.
|Proxy ftp delegate server OS: suse linux 10
|My unix sftp server OS: solaris 8
And what is your FTP client?
It is usual that a FTP client, at least in its default mode, does not
issue "-la" option, to get the list of hidden files, for the argument
in LIST or NLST FTP commands.
|Setting in proxy ftp delegate server :
|delegated -P22.214.171.124,126.96.36.199:990 SERVER=ftps RELIABLE="*" LOGFILE=/var/log/delegate/server.log PROTOLOG='' MOUNT="/* sftp://myunix/*" ADMIN=root <mailto:ADMINemail@example.com> @test CACHE=no REMITTABLE="*" STLS='-fcl,sslway -cert /etc/cert/myunix-ssl.crt -key /etc/cert/myunix.key' TLSCONF="shutdown"
You should start with the simplest configuration without TLS, and with
the simplest FTP client (the ftp command).
% delegated -P9999 -vv SERVER=ftp MOUNT="/* sftp://localhost/*"
% ftp localhost 9999
> ls -a
You should see log output like follows:
12/31 14:33:37.72  1+0/7/4: #### LIST^M
12/31 14:33:37.72  1+0/7/5: MOUNTED REMOTE  -> [sftp://localhost/]
12/31 14:33:42.24  1+0/9/6: #### LIST -a^M
12/31 14:33:42.24  1+0/9/7: MOUNTED REMOTE [-a] -> [sftp://localhost/][-a]
If you get "." files with the ftp command as above, the problem is in the
configuration or the option of your FTP client program.
9 9 Yutaka Sato <firstname.lastname@example.org> http://delegate.org/y.sato/
( ~ ) National Institute of Advanced Industrial Science and Technology
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller