Skip to Content.
Sympa Menu

baslinux - Re: [BL] Ftpd from asmutils ported and other programs added

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Ftpd from asmutils ported and other programs added
  • Date: Tue, 09 Oct 2007 20:21:48 +0200

baslinux AT lists.ibiblio.org wrote:
To start ftp daemon use

fptd /etc/ftpd.conf 21

and try to log in with some names and passwords inside ftpd.conf

To start httpd (btw it is in basiclinux already)

httpd /homedirectory

ps does not show the process running if I use my programs (compiled against uclibc) but it does with your ftpd and the busybox httpd. I will delete my versions.


I had the same problem, and I changed the source code, the line

sys_mmap 0,dword [sts.st_size],PROT_READ|PROT_WRITE,MAP_PRIVATE,ebx,0


to

sys_read ebx,cfg,dword [sts.size]

and add almost at the end of program

cfg resb 8192

System call mmap is different on Kernel below 2.4 and above, and therefore, without my patch, ftp daemon compiled for kernel 2.4 can not work on kernel 2.2.
Can I test these programs on a single machine with no ethernet card? I tried both lynx 127.0.0.1 (or localhost) and the IP number assigned when I connect to the ISP, both of which I can ping.

Your ftpd is 5% the size of pure-ftpd. It will allow file transfers
via ethernet cable from a Windows computer which has no httpd or ftpd or scpd.

Please explain the lines:

flag OR 1 => right to (APPE, STOR, STOU)
flag OR 2 => right to (APPE, CHMOD, DELE, MKD, RMD, RNFR, RNTO)
use EOF to ensure the end of file...
For each user you can have parameter flag which can be regarded as twobit number, which gives us the combinations:
0 - Can only download
1 - Can upload and download
2 - Can modify existing files, download, create directories but not upload
3 - can do everything

At the end of configuration file place three letters: E, O, and F
Can you provide a minimal ftp program? BL3 has ftpput (and busybox also has ftpget but bl3 has wget instead). I use kermit ftp.

On my site there is ftp program of about 53 kilobytes. Compressed with upx it is about 27 kilobytes. But I might make something smaller.

Samir






Archive powered by MHonArc 2.6.24.

Top of Page