curl: (25) Failed FTP upload: 553

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm tyring to upload to a vsftpd ftp using curl with this line



curl -T "$ATTACHMENTS_DIR$file##*/" ftp://10.0.13.52/ -v


I have enabled all the anon settings, I'm just creating a test script so security is not a concern. When I run the command, I get the log below



* Trying 10.0.13.52...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
< 220 (vsFTPd 3.0.2)
> USER anonymous
< 331 Please specify the password.
> PASS ftp@example.com
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||7228|).
* Trying 10.0.13.52...
* TCP_NODELAY set
* Connecting to 10.0.13.52 (10.0.13.52) port 7228
* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
> TYPE I
< 200 Switching to Binary mode.
> STOR local.pdf
< 553 Could not create file.
* Failed FTP upload: 553
* Remembering we are in dir ""
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host 10.0.13.52 left intact
curl: (25) Failed FTP upload: 553


The login appears to be good but the issue happens on upload of the file



553 Could not create file.
Failed FTP upload: 553



As I mentioned above, I have set the settings to allow anon to upload files. I just added these at the end to the default provided conf file.



write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
anon_world_readable_only=YES
anonymous_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES


If I am missing something with the config, I would really appreciate if you would let me know.










share|improve this question





















  • Can you login to the ftp server and show us the owner and modes of the directory specified by the anon_root entry in the conf file? Running ls -ld /var/whatever is fine.
    – Mark Plotnick
    Aug 15 at 15:53











  • hi, here's what I get. (I changed the owner of the file from root, to analytics user)
    – niccolo m.
    Aug 15 at 16:27











  • drwx------ 2 analytics root 6 Aug 15 23:45 /var/ftp/pub/uploads/
    – niccolo m.
    Aug 15 at 16:27














up vote
0
down vote

favorite












I'm tyring to upload to a vsftpd ftp using curl with this line



curl -T "$ATTACHMENTS_DIR$file##*/" ftp://10.0.13.52/ -v


I have enabled all the anon settings, I'm just creating a test script so security is not a concern. When I run the command, I get the log below



* Trying 10.0.13.52...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
< 220 (vsFTPd 3.0.2)
> USER anonymous
< 331 Please specify the password.
> PASS ftp@example.com
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||7228|).
* Trying 10.0.13.52...
* TCP_NODELAY set
* Connecting to 10.0.13.52 (10.0.13.52) port 7228
* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
> TYPE I
< 200 Switching to Binary mode.
> STOR local.pdf
< 553 Could not create file.
* Failed FTP upload: 553
* Remembering we are in dir ""
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host 10.0.13.52 left intact
curl: (25) Failed FTP upload: 553


The login appears to be good but the issue happens on upload of the file



553 Could not create file.
Failed FTP upload: 553



As I mentioned above, I have set the settings to allow anon to upload files. I just added these at the end to the default provided conf file.



write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
anon_world_readable_only=YES
anonymous_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES


If I am missing something with the config, I would really appreciate if you would let me know.










share|improve this question





















  • Can you login to the ftp server and show us the owner and modes of the directory specified by the anon_root entry in the conf file? Running ls -ld /var/whatever is fine.
    – Mark Plotnick
    Aug 15 at 15:53











  • hi, here's what I get. (I changed the owner of the file from root, to analytics user)
    – niccolo m.
    Aug 15 at 16:27











  • drwx------ 2 analytics root 6 Aug 15 23:45 /var/ftp/pub/uploads/
    – niccolo m.
    Aug 15 at 16:27












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm tyring to upload to a vsftpd ftp using curl with this line



curl -T "$ATTACHMENTS_DIR$file##*/" ftp://10.0.13.52/ -v


I have enabled all the anon settings, I'm just creating a test script so security is not a concern. When I run the command, I get the log below



* Trying 10.0.13.52...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
< 220 (vsFTPd 3.0.2)
> USER anonymous
< 331 Please specify the password.
> PASS ftp@example.com
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||7228|).
* Trying 10.0.13.52...
* TCP_NODELAY set
* Connecting to 10.0.13.52 (10.0.13.52) port 7228
* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
> TYPE I
< 200 Switching to Binary mode.
> STOR local.pdf
< 553 Could not create file.
* Failed FTP upload: 553
* Remembering we are in dir ""
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host 10.0.13.52 left intact
curl: (25) Failed FTP upload: 553


The login appears to be good but the issue happens on upload of the file



553 Could not create file.
Failed FTP upload: 553



As I mentioned above, I have set the settings to allow anon to upload files. I just added these at the end to the default provided conf file.



write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
anon_world_readable_only=YES
anonymous_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES


If I am missing something with the config, I would really appreciate if you would let me know.










share|improve this question













I'm tyring to upload to a vsftpd ftp using curl with this line



curl -T "$ATTACHMENTS_DIR$file##*/" ftp://10.0.13.52/ -v


I have enabled all the anon settings, I'm just creating a test script so security is not a concern. When I run the command, I get the log below



* Trying 10.0.13.52...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
< 220 (vsFTPd 3.0.2)
> USER anonymous
< 331 Please specify the password.
> PASS ftp@example.com
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||7228|).
* Trying 10.0.13.52...
* TCP_NODELAY set
* Connecting to 10.0.13.52 (10.0.13.52) port 7228
* Connected to 10.0.13.52 (10.0.13.52) port 21 (#0)
> TYPE I
< 200 Switching to Binary mode.
> STOR local.pdf
< 553 Could not create file.
* Failed FTP upload: 553
* Remembering we are in dir ""
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Connection #0 to host 10.0.13.52 left intact
curl: (25) Failed FTP upload: 553


The login appears to be good but the issue happens on upload of the file



553 Could not create file.
Failed FTP upload: 553



As I mentioned above, I have set the settings to allow anon to upload files. I just added these at the end to the default provided conf file.



write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
anon_world_readable_only=YES
anonymous_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES


If I am missing something with the config, I would really appreciate if you would let me know.







curl ftp vsftpd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 15 at 15:19









niccolo m.

10816




10816











  • Can you login to the ftp server and show us the owner and modes of the directory specified by the anon_root entry in the conf file? Running ls -ld /var/whatever is fine.
    – Mark Plotnick
    Aug 15 at 15:53











  • hi, here's what I get. (I changed the owner of the file from root, to analytics user)
    – niccolo m.
    Aug 15 at 16:27











  • drwx------ 2 analytics root 6 Aug 15 23:45 /var/ftp/pub/uploads/
    – niccolo m.
    Aug 15 at 16:27
















  • Can you login to the ftp server and show us the owner and modes of the directory specified by the anon_root entry in the conf file? Running ls -ld /var/whatever is fine.
    – Mark Plotnick
    Aug 15 at 15:53











  • hi, here's what I get. (I changed the owner of the file from root, to analytics user)
    – niccolo m.
    Aug 15 at 16:27











  • drwx------ 2 analytics root 6 Aug 15 23:45 /var/ftp/pub/uploads/
    – niccolo m.
    Aug 15 at 16:27















Can you login to the ftp server and show us the owner and modes of the directory specified by the anon_root entry in the conf file? Running ls -ld /var/whatever is fine.
– Mark Plotnick
Aug 15 at 15:53





Can you login to the ftp server and show us the owner and modes of the directory specified by the anon_root entry in the conf file? Running ls -ld /var/whatever is fine.
– Mark Plotnick
Aug 15 at 15:53













hi, here's what I get. (I changed the owner of the file from root, to analytics user)
– niccolo m.
Aug 15 at 16:27





hi, here's what I get. (I changed the owner of the file from root, to analytics user)
– niccolo m.
Aug 15 at 16:27













drwx------ 2 analytics root 6 Aug 15 23:45 /var/ftp/pub/uploads/
– niccolo m.
Aug 15 at 16:27




drwx------ 2 analytics root 6 Aug 15 23:45 /var/ftp/pub/uploads/
– niccolo m.
Aug 15 at 16:27















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f462767%2fcurl-25-failed-ftp-upload-553%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f462767%2fcurl-25-failed-ftp-upload-553%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?