Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
17 views
in General by (120 points)

One of our customer have a requirement that uploaded files needs to have 660 file permission. This is working for them when using the old version of our product (with edtFTPj/PRO v2.1.2), but they need to upgrade now. 

I know that you could update the file permissions by using InvokeSiteCommand( ). We tried that but we are getting an error: "Custom command result 200 This service allow sftp connections only". I read around and I think this is because their server have this configuration: ForceCommand internal-sftp

My question is:

What is the default file permissions of the uploaded files? Is it 755? Is there a configuration or setting to change this to a different permission so that we don't need to do the InvokeSiteCommand?

1 Answer

0 votes
by (46.5k points)
I'm going to assume that you're using FTP or FTPS, since you don't really say.

There are no defaults for FTP. The problem is that the FTP protocol doesn't deal with permissions, so there are no commands for handling them nor even any rules for what the defaults are supposed to be. It's therefore up to each individual server to determine how they should be handled, which is done via SITE commands.

SFTP does have permission commands and rules, so if you were to use that protocol (which our client supports) then you'd have some options.

Having said that, I don't see why upgrading edtFTPj/PRO to a more recent version should break anything, so if it worked with the old client then it should work with the new client.

Categories

...