cancel
Showing results for 
Search instead for 
Did you mean: 

Set Permission SFTP Archiving

Former Member
0 Kudos

Hi Experts,

Does anyone knows how to set permission to the Files that the Sender adapter are archiving. they all come with default with value 600 or -rw-------.

and i need it to be 777 or -rwxrwxrwx.

Thank you.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Praveen,

SFTP doesnt allow this type of permission. Its only FTP can allow this type of setting.

BR,
Varsha.

former_member182412
Active Contributor
0 Kudos

Hi Guilheme,

Actually the files are created in archive directory with the same permissions as source file which PI pick up, if you want 777 in archive directory you can try to change in source file permissions if possible.

If that is not the requirement try with Anand suggestion.

Regards,

Praveen.



Former Member
0 Kudos

Hi Praveen,

Using FTP, the adapter respects the source file permission, but the SFTP doesn't respect this, the adapter is changing this permission

Thanks.

anandvithal
Active Participant
0 Kudos

Hi,

Try add this command to sftp channel in run operating system command after message processing

chmod a+rwx <archive directory>/%f

Give it a try...i have not tried it myself though.

Hope it helps,

Anand