Article delegate-en/2338 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: AW: [DeleGate-En] AW: [DeleGate-En] DeleGate as Origin FTP
09 Jul 2003 18:24:42 GMT (Yutaka Sato)


On 07/10/03(00:19) you Jani Radovan <> wrote
in <_A2336@delegate-en.ML_>
 |I want to run a delegate on linux4 (where is not running any ftp server), as
 |ftp server with access to its filesystem, and also want to have two linux
 |ftpservers on linux2 and linux1 desktops mapped into ftp-relay directory at
 |linux4. So when I connect to linux4 with ftp client, I could access its
 |files, and via mapped also the two ftp server at linux2 and linux1. With the
 |command line I send you last time is this possible, but with the limitation
 |I described.
 |from this point can I use 'ls' and also get to upper level with "cd .." and
 |also there can I use "ls". So what should I make, to be albe to use the "ls"
 |command just after I connect to root of file system at linux4 with delegate

FTP-DeleGate will not permit access to its local file system without
explicit MOUNT on it is specified like MOUNT="/* file:/dir/*", and 
until some password based authentication is verified.

Except for anonymous users, password authentication should be verified
before any access to local resources in the current implementation.
But when enough access control is done in other ways (with PERMIT or so),
password based authentication might not be necessary.  So I enabled
"AUTH=none" option not to care password authentication.

  MOUNT="/* file:/dir/* AUTH=none"

The enclosed patch is for delegate8.6.0-snap0306240 which is at

  @ @ Yutaka Sato <>
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

*** ../dist/delegate8.6.0-snap03062408/src/ftp.c	Tue May  6 18:43:59 2003
--- ftp.c	Thu Jul 10 03:21:56 2003
*** 166,171 ****
--- 166,173 ----
  	FILE   *fs_fs;
  } FtpStat;
+ #define FS_NOAUTH	2 /* password authentication unnecessary */
  #define fs_XDCforSV	fs_XDC_SV.xdc_ON
  #define fs_XDCencSV	fs_XDC_SV.xdc_encode
  #define fs_XDCforCL	fs_XDC_CL.xdc_ON
*** 1559,1565 ****
--- 1561,1570 ----
  	if( AsServer0(Conn,FS,tc,com,arg,user) ){
+ 	/*
  	if( !FS->fs_anonymousOK ){
+ 	*/
+ 	if( !FS->fs_anonymousOK && (FS->fs_islocal&FS_NOAUTH)==0 ){
  		 * only anonymous login is allowed in the current implementation.
  		 * opts = isLocal()
*** 1722,1727 ****
--- 1727,1733 ----
  		return 0;
  	FS->fs_islocal = 1;
+ 	if( NoAuth ) FS->fs_islocal |= FS_NOAUTH;
  	ncwd = mdir + 16;
  	if( ncwd[1] != '/' && isFullpath(ncwd+1) ) /* DOS drive: */

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]