Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] vsftpd anonymous upload illegal PORT command Walter Dnes <waltdnes@××××××××.org>