cancel
Showing results for 
Search instead for 
Did you mean: 

Set File permission as read only

Former Member
0 Kudos

Dear Experts,

I am trying to use a receiver file adapter to create a file at a target as a read only file.

For this I'm using the Run Operating Sytem Command after procesisng option.

Since the OS is Unix, the command supplied is "chmod 444 %f". The file gets written in the target folder, but it is by default written with the code "644". The adapter log shows that the operating system command has been run. But the file property doesn't change to Read only.

Any suggestions why it must be happening? And what should I do to make it work?

Thanks and Regards,

Merrilly

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I suppose you are using a FTP receiver channel.

Os commands in this channel are executed in PI/XI system, not in ftp server.

If you want to change permissions, you must execute a remote shell to ftp server.

It would be like:

ssh remotehost "chmod 444 %f"

Regards,

Carme

Former Member
0 Kudos

Hi,

I'm using a NFS receiver file adapter and not FTP. So, I don't think that should be the problem. any other ideas?

Thanks,

Merrilly

Former Member
0 Kudos

Then, try with full path:

chmod 444 %F

Regards,

Carme.

Answers (0)