1 |
On Thu, Aug 03, 2017 at 07:50:32AM -0700, Jeriko One wrote |
2 |
|
3 |
> Are you able to upload files from other machines than this particular |
4 |
> VM? I don't have any problems uploading using your config. |
5 |
|
6 |
It fails uploading a test file from the linux machine hosting the VM. |
7 |
|
8 |
> Who owns /home/ftp? I think by default vsftpd will change the owner |
9 |
> to root which would cause problems. |
10 |
|
11 |
I get more verbose error messages with the linux ftp client. On the h |
12 |
|
13 |
[i3][root][/dev/shm] ftp 192.168.123.251 |
14 |
Connected to 192.168.123.251 (192.168.123.251). |
15 |
220 (vsFTPd 3.0.2) |
16 |
Name (192.168.123.251:waltdnes): anonymous |
17 |
530 Please login with USER and PASS. |
18 |
SSL not available |
19 |
331 Please specify the password. |
20 |
Password: |
21 |
230 Login successful. |
22 |
Remote system type is UNIX. |
23 |
Using binary mode to transfer files. |
24 |
ftp> put hello.txt |
25 |
local: hello.txt remote: hello.txt |
26 |
200 PORT command successful. Consider using PASV. |
27 |
553 Could not create file. |
28 |
ftp> bye |
29 |
221 Goodbye. |
30 |
|
31 |
This was with the upload dir on 192.168.123.251 with permissions 555 |
32 |
[d531][root][~] ll /home/ftp/ |
33 |
total 8 |
34 |
dr-xr-xr-x 2 ftp ftp 4096 Aug 3 06:41 . |
35 |
drwxr-xr-x 6 root root 4096 Aug 3 06:41 .. |
36 |
|
37 |
If I change permissions on /home/ftp to 666, I get... |
38 |
|
39 |
[i3][root][/dev/shm] ftp 192.168.123.251 |
40 |
Connected to 192.168.123.251 (192.168.123.251). |
41 |
220 (vsFTPd 3.0.2) |
42 |
Name (192.168.123.251:waltdnes): anonymous |
43 |
530 Please login with USER and PASS. |
44 |
SSL not available |
45 |
331 Please specify the password. |
46 |
Password: |
47 |
500 OOPS: vsftpd: refusing to run with writable root inside chroot() |
48 |
Login failed. |
49 |
ftp> bye |
50 |
|
51 |
How is this supposed to work anyways? Can't write to upload dir if |
52 |
it's not writable, but vsftpd refuses to run if the upload dir is |
53 |
writeable. Help. |
54 |
|
55 |
-- |
56 |
Walter Dnes <waltdnes@××××××××.org> |
57 |
I don't run "desktop environments"; I run useful applications |