Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in Java FTP by (160 points)
Hi there,

if I upload my files normally via a FileTransferClient, the will have the Permissions "-rw-------".

But I want to set the permissions 777 (so that anybody can read, write and execute the files "-rwxrwxrwx")

I tried with FTPFile.setPermissions(), but it does not work...

Please help!

Best regards

Piwi

2 Answers

0 votes
by (162k points)
Most FTP servers will not allow you to set permissions. The default permissions are set by the server administrator. There is a (small) possibility that a SITE command will allow you to do this - ask your server administrator for more details.
0 votes
by (160 points)
Thx for the hint! :)

It works if I send directly a SITE CHMOD 777 command.

Categories

...