Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting MSMQ permissions for a private queue created by a different user

Tags:

The person who was previously using my PC at work set up a private MSMQ that I need to access. They have since left the bank but the permissions remain and I can't access the queue or give myself edit permission to remove the restriction.

I am an admin on this machine now so I'm assuming there's some way for me to change things..Been searching high and low but most of what I find is related to doing things through scripts.

Any help appreciated,

thanks

like image 336
Alex Avatar asked Jan 05 '11 12:01

Alex


People also ask

How do I set permissions in msmq?

Stop the MSMQ Service (Services -> Message Queuing) Open the C:\WINDOWS\system32\msmq\storage\lqs folder. Find the config file in this folder that describes a queue that has "good" security permissions. You will need to open each file in turn with a text editor to determine which queue it relates to.

What is private queue in msmq?

Private queues are queues that are not published in Active Directory and are displayed only on the local computer that contains them.

How do I create a private queue in msmq?

To create a new queue, right click on the desired queue folder (Public Queues or Private Queues) and select New > Public/Private Queue. In the New Public/Private Queue dialog, enter the name of the queue in the Queue name text field. Click OK to confirm.

How do I delete a private queue in msmq?

In computer management, go to the security properties of the queue, take ownership through the Advanced button, and set permissions to what you want. Find the queue config file in the system32\msmq\storage\lqs directory and delete the file; the queue name will be inside the file you want.


1 Answers

And for a manual process if all else fails:

  1. Stop the MSMQ Service (Services -> Message Queuing)
  2. Open the C:\WINDOWS\system32\msmq\storage\lqs folder
  3. Find the config file in this folder that describes a queue that has "good" security permissions. You will need to open each file in turn with a text editor to determine which queue it relates to.
  4. Once you have the correct file open, locate the line in the file that begins Security=....
  5. Copy the whole line to your clipboard (watch out for Word Wrap, this line will be quite long)
  6. Find the config file in this folder that describes your problem queue
  7. Open this file in a text editor.
  8. Overwrite the Security=... line in this file with the contents of your clipboard
  9. Save the modified file
  10. Start the MSMQ service; new permissions will be picked up.

Cheers

John Breakwell

like image 192
John Breakwell Avatar answered Sep 23 '22 04:09

John Breakwell