On Tue, 2008-03-04 at 11:08 +0100, Roelof Kemp wrote:
> Hi all,
>
> I'm using gridftp to transfer my files using a java application that
> uses the cog interface to globus. I want to set the file permissions of
> a new copy of a file using this code:
>
> client.put(src, dest, false);
> client.site("SITE CHMOD 700 /path/to/file");
You should probably do something like:
client.site("chmod 700 /path/to/file");
Mihael
>
> The file gets copied to the dest, but the chmod doesn't succeed and
> reports this exception:
>
> org.globus.ftp.exception.ServerException: Server refused performing the
> request. Custom message: (error code 1) [Nested exception message:
> Custom message: Unexpected reply: 500 Invalid command.] [Nested
> exception is org.globus.ftp.exception.UnexpectedReplyCodeException:
> Custom message: Unexpected reply: 500 Invalid command.]
>
> Is my syntax of the site command wrong? Or does the server not support
> this command (I checked the source code of the server, there's a lot of
> CHMOD specific code in it)? What do I have to do to make the chmod
> command successful? It's important that it isn't readable for everyone,
> since it has to do with medical data.
>
> Cheers,
>
> Roelof
>