# FTP file could not create

**URL:** <https://forum.legato.io/t/ftp-file-could-not-create/4069>\
**Category:** Uncategorized\
**Created:** [January 28, 2019, 9:30am UTC](https://forum.legato.io/t/ftp-file-could-not-create/4069 "2019-01-28T09:30:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahithi](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Sahithi](https://forum.legato.io/u/Sahithi)\
**Post date:** [January 28, 2019, 9:30am UTC](https://forum.legato.io/t/ftp-file-could-not-create/4069/1 "2019-01-28T09:30:57Z")

</div>

Hi,  
We are using mangoh red wp7502 module. And trying to send a file through ftp protocol. USER , PASS PASV and PORT commands were successfully implemented but we are getting 553 could not create file error while using STOR command . We are trying to send a file present in the sd card, all permissions to access the file are enabled.We enabled required permissions in vsftpd.conf.  
We tried through commands in terminal using curl command. it shows 553 failed to create a file.  
Should any changes be made in the server side.

```
		strcpy(bufer1,"STOR /etc/sd/my.txt\r\n");
		send(sockFd,bufer1,26,0);
		recv(sockFd,buff,strlen(buff),0);
		LE_INFO(buff);
		sleep(2);

```

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [January 28, 2019, 8:13pm UTC](https://forum.legato.io/t/ftp-file-could-not-create/4069/2 "2019-01-28T20:13:29Z")

</div>

It might be useful to use `curl --verbose` to get more info on the transation.

Is the same command working from another linux machine (Ubuntu or other)?

---

<div class="post-metadata">

**Author:** ![Sahithi](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Sahithi](https://forum.legato.io/u/Sahithi)\
**Post date:** [January 29, 2019, 9:32am UTC](https://forum.legato.io/t/ftp-file-could-not-create/4069/3 "2019-01-29T09:32:20Z")

</div>

We used curl --verbose , it is showing the same error 553 could not create file .  
Please help us.

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [March 25, 2019, 4:09pm UTC](https://forum.legato.io/t/ftp-file-could-not-create/4069/4 "2019-03-25T16:09:22Z")

</div>

@Sahithi,  
Did you try same thing from linux/ubuntu machine? If you have not tried, Please try the same things from linux/ubuntu machine. If you don’t see this issue on linux/ubuntu machine, Please let us know.

Regards,  
Muralidhara N.
