Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in Java FTP by (460 points)
We have recently upgraded jar from v3.2 to v4.2.Everything seems to be good except permission on file when uploading the using edtFtpj SFTP API.

The permission sets on file when uploading using SFTP API as below
--> edtFtpj pro 3.2
-rw-r----- 

-->edtFtpj pro 4.2
-rwxr-x---  


The unmask set on destination SFTP server home directory is 027

Is default permission changed with latest edtFtpj pro?

Please advise.

3 Answers

0 votes
by (51.6k points)
I'm going to defer on this question to my colleague, Bruce. He's on holidays this week but I'll ask him to respond to your question on Monday.

- Hans (EnterpriseDT)
0 votes
by (460 points)
Thank you Hans. Any update from Bruce.

I'm going to defer on this question to my colleague, Bruce. He's on holidays this week but I'll ask him to respond to your question on Monday.

- Hans (EnterpriseDT)
0 votes
by (162k points)
There was actually a bug in earlier versions, and edtFTPj/PRO is now producing the correct result.

The default perms are 777, and the default umask is 022, giving 755 default permissions.

With a umask of 027, you get -rwxr-x--- (750), as expected now.

If you want to get permissions of -rw-r----- for newly created files (640) , you need a umask of 137.

Categories

...