How to Create MQM User & Group on Linux ?


Mqm User and group are created by default as part of the installation. However you might want to create them manually so that the UID and GID are the same across multiple installations (this is useful in case of multi instance queue manager).

Create a group called mqm
Create a user called mqm
groupadd –g mqm useradd -u -d /var/mqm -G mqm mqm

In the above commands we have created a group call mqm with a gid as specified. Then we are creating a user with uid as specified and root folder /var/mqm and tagged to the group mqm.

Type the below command to verify if the user has been added properly
id mqm
Any other user who needs MQ admin privilege needs to be a part of mqm group.

Use the user mod command to add user to the mqm group
usermod -G mqm


Comments