SFTP file permissions

Six Stars ars
Six Stars

SFTP file permissions

Hi all,

 

I'm uploading a file into a SFTP folder using WinSCP. File has rw-rw-r-- file permissions.


correct.png

corrupt.png

The issue is that I need the file with rw-rw-r permissions and it seems that Talend - somehow - changes them.

 

Is there any workaround for this? Because there is no any option for ermissions on tFTPPut component!

 

I'm using Talend Open Studio 5.6.2 under Windows OS.

 

Regards,

 

Ars


Accepted Solutions
Six Stars ars
Six Stars

Re: SFTP file permissions

Hi @fdenis,

 

Finally the problem was resolved by changing the SFTP directory permissions - so the files permissions are inherited from them!

 

Anyway, thank you for your proposal!

 

Regards,

 

Ars

 


All Replies
Ten Stars

Re: SFTP file permissions

it depend on your file system, but you can use tSystem or tSSH to set rights.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Six Stars ars
Six Stars

Re: SFTP file permissions

thank you for your reply @fdenis

 

the question is how this can be done - the components are there - ok - but I don't know how to use them !!!  (that's why I'm asking a workaround).

 

regards,

Ten Stars

Re: SFTP file permissions

something like that
unix
chmod 644 myFile

windows
ATTRIB +R +A [drive:][path][file name] /S

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Six Stars ars
Six Stars

Re: SFTP file permissions

Hi @fdenis,

 

Finally the problem was resolved by changing the SFTP directory permissions - so the files permissions are inherited from them!

 

Anyway, thank you for your proposal!

 

Regards,

 

Ars