1 |
On August 4, 2017 5:25:57 AM GMT+10:00, Mick <michaelkintzios@×××××.com> wrote: |
2 |
>On Thursday 03 Aug 2017 15:02:51 Walter Dnes wrote: |
3 |
>> On Thu, Aug 03, 2017 at 07:50:32AM -0700, Jeriko One wrote |
4 |
>> |
5 |
>> > Are you able to upload files from other machines than this |
6 |
>particular |
7 |
>> > VM? I don't have any problems uploading using your config. |
8 |
>> |
9 |
>> It fails uploading a test file from the linux machine hosting the |
10 |
>VM. |
11 |
>> |
12 |
>> > Who owns /home/ftp? I think by default vsftpd will change the owner |
13 |
>> > to root which would cause problems. |
14 |
>> |
15 |
>> I get more verbose error messages with the linux ftp client. On |
16 |
>the h |
17 |
>> |
18 |
>> [i3][root][/dev/shm] ftp 192.168.123.251 |
19 |
>> Connected to 192.168.123.251 (192.168.123.251). |
20 |
>> 220 (vsFTPd 3.0.2) |
21 |
>> Name (192.168.123.251:waltdnes): anonymous |
22 |
>> 530 Please login with USER and PASS. |
23 |
>> SSL not available |
24 |
>> 331 Please specify the password. |
25 |
>> Password: |
26 |
>> 230 Login successful. |
27 |
>> Remote system type is UNIX. |
28 |
>> Using binary mode to transfer files. |
29 |
>> ftp> put hello.txt |
30 |
>> local: hello.txt remote: hello.txt |
31 |
>> 200 PORT command successful. Consider using PASV. |
32 |
>> 553 Could not create file. |
33 |
>> ftp> bye |
34 |
>> 221 Goodbye. |
35 |
>> |
36 |
>> This was with the upload dir on 192.168.123.251 with permissions |
37 |
>555 |
38 |
>> [d531][root][~] ll /home/ftp/ |
39 |
>> total 8 |
40 |
>> dr-xr-xr-x 2 ftp ftp 4096 Aug 3 06:41 . |
41 |
>> drwxr-xr-x 6 root root 4096 Aug 3 06:41 .. |
42 |
> |
43 |
>It could not create file because your ftp user:group do not have write |
44 |
>permission. |
45 |
> |
46 |
> |
47 |
>> If I change permissions on /home/ftp to 666, I get... |
48 |
|
49 |
What about 777 for /home/ftp ? |
50 |
|
51 |
Directories generally need the 'x' set |
52 |
|
53 |
>> |
54 |
>> [i3][root][/dev/shm] ftp 192.168.123.251 |
55 |
>> Connected to 192.168.123.251 (192.168.123.251). |
56 |
>> 220 (vsFTPd 3.0.2) |
57 |
>> Name (192.168.123.251:waltdnes): anonymous |
58 |
>> 530 Please login with USER and PASS. |
59 |
>> SSL not available |
60 |
>> 331 Please specify the password. |
61 |
>> Password: |
62 |
>> 500 OOPS: vsftpd: refusing to run with writable root inside chroot() |
63 |
>> Login failed. |
64 |
>> ftp> bye |
65 |
>> |
66 |
>> How is this supposed to work anyways? Can't write to upload dir if |
67 |
>> it's not writable, but vsftpd refuses to run if the upload dir is |
68 |
>> writeable. Help. |
69 |
> |
70 |
>According to the man page here: |
71 |
> |
72 |
> https://security.appspot.com/vsftpd/vsftpd_conf.html |
73 |
> |
74 |
>" ... the anonymous ftp user must have write permission on desired |
75 |
>upload |
76 |
>locations." |
77 |
> |
78 |
>You may want to try setting |
79 |
> |
80 |
>file_open_mode=0777 |
81 |
> |
82 |
>in your vsftpd.conf and check ftp user or group have write permissions |
83 |
>within |
84 |
>the /home/ftp/ directory. |
85 |
|
86 |
-- |
87 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |