FreeKB - IBM MQ grant permissions using the setmqaut command
IBM MQ - grant permissions using the setmqaut command

These examples are based on a Linux system. Switch to the mqm user.

su - mqm

 

The setmqaut command is used to give or remove a user or groups permissions. In this example, user JohnDoe is given access to queue manager MANAGER01.

setmqaut -m MANAGER01 -t qmgr -p JohnDoe +connect +inq

 

In this example, group admins is given access to queue manager MANAGER01.

setmqaut -m MANAGER01 -t qmgr -g admins +connect +inq

 

The -n option can be used to add or remove permissions to a queue or topic. In this example, JohnDoe is given permission to QUEUE01. Notice this command is issued twice, once against "QUEUE01" and then again aginst "MANAGER01.QUEUE01.QUEUE". The second command ensures that the queue alias is updated as well.

setmqaut -m MANAGER01 -n QUEUE01 -t queue -p JohnDoe -all +put +get +browse +inq
setmqaut -m MANAGER01 -n MANAGER01.QUEUE01.QUEUE -t queue -p JohnDoe -all +put +get +browse +inq

 

The dspmqaut command can be used to display JohnDoe's permssions to MANAGER01 and QUEUE01.

Start the MQSC utility.

runmqsc MANAGER01

 

Refresh security.

REFRESH SECURITY(*)

 

Exit the MQSC utility.

end

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 181b2 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |