FreeKB - Create WebSphere MQ User in Linux
Create WebSphere MQ User in Linux

Home > Search


Create a new user account. In this example, JohnDoe's account is created.

~]# useradd JohnDoe

 

Give JohnDoe a password.

~]# passwd JohnDoe

 

Switch to the mqm user.

~]# su - mqm

 

Start the MQSC utility.

~]# /opt/mqm/bin/runmqsc

 

Setup John Doe to be able to setup a connection on CHANNEL01.

alter channel(CHANNEL01) chltype(SVRCONN) mcauser('JohnDoe')

 

Exit the MQSC utility.

end

 

All JohnDoe to connect and make inquries to the manager.

/opt/mqm/bin/setmqaut -m MANAGER01 -t qmgr -p JohnDoe +connect
/opt/mqm/bin/setmqaut -m MANAGER01 -t qmgr -p JohnDoe +inq

 

Ensure the connect priviledge was granted.

/opt/mqm/bin/dspmqaut -m MANAGER01 -t qmgr -p JohnDoe

Entity JohnDoe has the following authorizations for object MANAGER01: 
    connect
    inq

 

Grant JohnDoe access to all authorizations to the queue.

/opt/mqm/bin/setmqaut -m MANAGER01 -n QUEUE01 -t queue -p JohnDoe +all

 

Display the authorizations that JohnDoe has.

/opt/mqm/bin/dspmqaut -m MANAGER01 -n QUEUE01 -t queue -p JohnDoe

Entity JohnDoe has the following authorizations for object QUEUE01: 
    get
    browse
    put
    inq
    set
    dlt
    chg
    dsp
    passid
    passall
    setid
    setall
    clr

 

Start the MQSC utility.

~]# /opt/mqm/bin/runmqsc

 

Refresh security.

REFRESH SECURITY(*)

 

Exit the MQSC utility.

end

 

Return to your user account.

~]# exit


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 26ef7 in the box below so that we can be sure you are a human.




Comments