Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] vsftpd anonymous upload illegal PORT command
Date: Mon, 07 Aug 2017 06:25:38
Message-Id: 20170807062457.GA15823@waltdnes.org
In Reply to: Re: [gentoo-user] vsftpd anonymous upload illegal PORT command by David Haller
1 On Fri, Aug 04, 2017 at 02:23:08PM +0200, David Haller wrote
2 > Hello,
3 >
4 > On Thu, 03 Aug 2017, Walter Dnes wrote:
5 > >On Thu, Aug 03, 2017 at 04:09:15PM +0100, Mick wrote
6 > >> On Thursday 03 Aug 2017 08:13:18 Walter Dnes wrote:
7 > >
8 > >> > anon_root=/home/ftp
9 > >>
10 > >> Is this writeable?
11 > >
12 > > If I do make it writeable, I get...
13 > >
14 > >500 OOPS: vsftpd: refusing to run with writable root inside chroot()
15 >
16 > # mkdir /home/ftp/incoming
17 > # chown ftp.ftp /home/ftp/incoming
18 > # chmod 1777 /home/ftp/incoming
19 > # chmod 555 /home/ftp
20
21 I did the above (copy+paste; *WITHOUT* the "#", in case anyone asks).
22 Here's what happens. Question... why is it prompting me with "530 Please
23 login with USER and PASS." *AFTER* I give username "anonymous". BTW, if
24 I try any username, other than anonymous, it dies with a message about
25 being only an anonymous ftp server.
26
27 [i3][waltdnes][~/downloads] ftp -p 192.168.123.251
28 Connected to 192.168.123.251 (192.168.123.251).
29 220 (vsFTPd 3.0.2)
30 Name (192.168.123.251:waltdnes): anonymous
31 530 Please login with USER and PASS.
32 SSL not available
33 331 Please specify the password.
34 Password:
35 230 Login successful.
36 Remote system type is UNIX.
37 Using binary mode to transfer files.
38 ftp> put install-x86-minimal-20170207.iso
39 local: install-x86-minimal-20170207.iso remote: install-x86-minimal-20170207.iso
40 227 Entering Passive Mode (192,168,123,251,117,59).
41 553 Could not create file.
42 ftp> bye
43 221 Goodbye.
44
45 I did manage to get the video game transferred with tftp, after a bit
46 of extra work. I don't know if it's the old OS/2 Warp tftp client, or
47 part of the protocol, but it can only transfer files up to 33553920
48 bytes in size, i.e. 32 * 1024 * 1024 - 512 bytes. 32 megabytes looks
49 like some sort of coded-in limit. I had to do the transfer in pieces
50 less than 32 megabytes. I still want to get anonymous ftp working.
51
52 --
53 Walter Dnes <waltdnes@××××××××.org>
54 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] vsftpd anonymous upload illegal PORT command Mick <michaelkintzios@×××××.com>
Re: [gentoo-user] vsftpd anonymous upload illegal PORT command David Haller <gentoo@×××××××.de>