cancel
Showing results for 
Search instead for 
Did you mean: 

Which user is used to execute command defined in File Adapter?

Former Member
0 Kudos

Hello,

in my receiver file adapter I specified a OS command to be executed after message processing. However this command doesn't get executed. After investigation I figure out that it's because the user that is used to executed the command does not have enough authorization to run the program (It's a unix system).

So anyone knows which user is used to execute the command? Or anyone know how to go around this security issue with OS command in Unix system?

Thanks

Eric

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

As Bhavesh replied you earlier the OS command is executed by the user <sid>adm in Unix or SAPService<SID> in windows.

Do check the note 841704 - XI File & JDBC Adapter: Operating system command.

From Note 841704
Also note that the command is run as user "<sid>adm" (Unix) / "SAPService<SID>" (Windows).

Thanks

SaNv...

Former Member
0 Kudos

This is also from the Note 841704

Note that for the File Adapter transport protocol "FTP", the operating system command is NOT executed on the FTP server, but on the server hosting the Adapter Engine.

Does this mean, the commands are not run on the ftp server ? This makes the FTP Adater not to use the ftp user provided during config.

santhosh_kumarv
Active Contributor
0 Kudos

>>Does this mean, the commands are not run on the ftp server ?

Yes. The OS command will only run on the machine the the AE is running on and with the user as I replied earlier depending on UNIX or Windows environment.

>> This makes the FTP Adater not to use the ftp user provided during config.

No. The ftp user is only used to make the connectivity to the FTP server to post/poll the files.

Thanks

SaNv...

Former Member
0 Kudos

Hi Bhavesh, SaNv

thanks so much. I will test it. Points assigned.

Eric

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

XIAFUSER should have authorizations for NFS case. using FTP the username provided in the CC required to have authorizations for executing the OS command.

Thanks

Gaurav

Former Member
0 Kudos

You provide the user when u configure the FTP Receiver...

VijayKonam
Active Contributor
0 Kudos

Must be PIAFUSER.

VJ

Former Member
0 Kudos

VJ, I am gonna test with the user PIAFUSER.

The FTP user should have nothing to do with executing the OS command, because you can define OS command without using FTP in the adapter.

Eric

bhavesh_kantilal
Active Contributor
0 Kudos

Its actually for "SID"+ADM user.

All NFS files get written using this user id.

Regards

Bhavesh