ftpd authentication [PATCH] ftpd: NOMMU/chroot fix

Morten Kvistgaard MK at pch-engineering.dk
Thu Jun 26 07:27:30 UTC 2014


Hello Denys,

Here's how to reproduce the error:

I'm using a i386 Ubuntu 10.04.

- Enable the "Force NOMMU build" in menuconfig. (Also make sure the ftpd is added.)
- Add the busybox ftpd to your inetd. Something like:

ftp	stream	tcp	nowait	root	/home/mk/workspace/busybox/busybox	busybox ftpd -w /home/

- The important part is the jail dir. Eg. "/home/". Whatever. Make sure it has a file or two. (And reload your inetd.)
- Open your favorite ftp client against the server. I'm using WinSCP, FileZilla or win32 ftp. 
- If the ftp client can list your files, then all is good. (Mine cannot.)

The problem lies in the "exit jail" under the NO_MMU part.

Regards,
Morten Kvistgaard


-----Original Message-----
From: Denys Vlasenko [mailto:vda.linux at googlemail.com] 
Sent: 25. juni 2014 16:23
To: Morten Kvistgaard
Cc: Bernhard Reutner-Fischer; busybox at busybox.net
Subject: Re: ftpd authentication [PATCH] ftpd: NOMMU/chroot fix

On Tue, Jun 24, 2014 at 2:25 PM, Morten Kvistgaard <MK at pch-engineering.dk> wrote:
> Hello Bernhard,
>
> The first patch for ftpd authentication is a bug fix for NOMMU platforms.
>
> You need a working jail in order for the authentication to make sense. (And I've got a NOMMU platform.) The patch has been tested on both NOMMU and normal platforms.

What bug does it fix? I just tested current git and it works.

(Also, your patch is whitespace damaged, please send future patches as attachments if in doubt that your mail program does not corrupt inline patches).

 
 
--
This message has been scanned for viruses and dangerous content by CronLab
(www.cronlab.com), and is believed to be clean.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-NOMMU-chroot-fix.patch
Type: application/octet-stream
Size: 3434 bytes
Desc: 0001-NOMMU-chroot-fix.patch
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140626/141f4aa6/attachment.obj>


More information about the busybox mailing list