Reputation: 35
good afternoon!
I know we can start trigger monitor with non mqm user using scripts. I would like to know if there is a way to setup a service to start the trigger monitor when qmgr starts, and using a different user id from mqm.
Regards
Upvotes: 0
Views: 139
Reputation: 7525
When using a SERVICE object in IBM MQ, the command you run (i.e. what you place in the STARTCMD
attribute) is run with mqm authority. This is stated explicitly in Knowledge Center.
Attention: This command allows a user to run an arbitrary command with mqm authority. If granted rights to use this command, a malicious or careless user could define a service which damages your systems or data, for example, by deleting essential files.
If you have a script that does what you need, you can put the script in the STARTCMD
attribute. If that script changes the user ID, and then runs the program, then as long as the mqm group user ID has permission to do what is in the script, won't that still work?
Upvotes: 1