Unsolved

This post is more than 5 years old

1858

March 27th, 2017 11:00

Appsync postmount script

We are using AppSync service plan to perform db2 copyback (using filesystem repurpose ). It seems like postmount script needs to be run as appsync user. we are trying to do chown command as part of postmount script, but unfortunately appsync user doesn't have the privilege to run chown. Is there anyway to run postmount script to run as root (without having to put the root username/password). This is similar to call out script which is always run as root.

Thanks,

Vijay Govindan

82 Posts

March 27th, 2017 11:00

It is required on Unix hosts to enter a user, and this can be any user, as screen shot shows. You have to enter the user you want the scripts to run as...how else would it know who to run the script by, and by what credentials?

Image 008.jpg

March 27th, 2017 15:00

I understand, but this presents many problems.

We are trying to use postmount script to change ownership of filesystem which can be done only by root or user which has root like privileges. We cannot put root username/password because of security concerns. If we use appsync username/password, we will have to go to each service plan and update the password when we rotate them (we plan to rotate the password every 180 days).

Isn't there a way to run the postmount script (just like callout script) as root without having to enter root username/password ?.

Vijay

82 Posts

March 28th, 2017 11:00

No, there is no way to do that...You would have to change each service plan, if the user changes. The other option is to create a service account for this purpose.

No Events found!

Top