Using Ftpclient I cannot send file to FTP server. Problem with permission

Asked

Viewed 974 times

0

I’m developing an android app that accesses an FTP server where I store backup files. I’m using it as a base in that tutorial. The FTP server is Cesarftp. The operating system is a Windows Server 2008 R2.

I make copies of files via FTP without any problems. However, when I try to upload a file it simply is not recorded. The return code for FTP is 550. That is, apparently I have problems related to folder permission, but when I did a upload test with a program intended to manage files by FTP this managed to send and receive files without problems. I checked the permissions on both the folder and Cesar and all permissions I can give through the security interface have been given. However, when viewing folder permissions with Cuteftp this is 744 allowed. For this reason, I believe that whenever I log into the FTP server by my application I receive public permission and therefore can only read in the folder.

I tried to put the folder’s permission at least 766, but I was unsuccessful. So if I do not resolve by changing the permission of this folder, I believe that there may be some way for me to authenticate on the FTP server in order to be able to access the profile that has full access to the folder, as happens with programs intended to manage FTP.

How to do this or something that solves the permission issue in the folder?

  • If you send with another ftp client (Filezilla, for example) works normally?

  • Exactly. With the same Filezilla I tested. The file uploads without problem.

1 answer

0


I could not identify a way to solve this problem with permission through the code or through the settings of Windows Server 2008 R2. I solved the problem by swapping the server OS.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.