Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.8k views
in Java FTP by (120 points)
Hi-

Is there a way to chown the files that are downloaded via the get() function? I'm implementing FTPClient in some JSPs and am noticing that the files come down as owned by root. This is obviously a security concern, so I was wondering if there was a way to explicitly set user permissions through the client.

Thanks in advance for any help!

1 Answer

0 votes
by (162k points)
The client itself doesn't change user permissions - files will always be written as owned by the process writing them, i.e. you are running your web container as root.

I'd be rather concerned about this - you should create a user called "web" or something like that to run the web container. It should never be run as root.

Hi-

Is there a way to chown the files that are downloaded via the get() function? I'm implementing FTPClient in some JSPs and am noticing that the files come down as owned by root. This is obviously a security concern, so I was wondering if there was a way to explicitly set user permissions through the client.

Thanks in advance for any help!

Categories

...