Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

No MMC Access to a Private Queue: Access to Message Queuing system is denied

382 views
Skip to first unread message

Brian Ledsworth

unread,
Jul 23, 2003, 1:23:03 PM7/23/03
to
I am completely locked out of a Queue.

When setting security for a Queue, I think I accidentally removed ALL
entries! I cannot manage the queue via MMC, or even changes it's
security rights programmability (I've tried building a service that
access the queue via the LocalSystem account, and even that's denied,
and that's worked in the past when the Administrators group was
removed from the security ACL).

The queue is a private queue on Windows 2000 (vanilla install). I've
tried access via both and Administrator account and LocalSystem. The
code I used was C#, and as follows:


System.Messaging.MessageQueue y;

y = new System.Messaging.MessageQueue("FormatName:Direct=OS:.\\private$\\xyz");

y.SetPermissions("everyone",
System.Messaging.MessageQueueAccessRights.FullControl);

Any help is appreciated, thanks

Brian Ledsworth

Doron Juster [MSFT]

unread,
Jul 24, 2003, 9:12:30 AM7/24/03
to
Programmatically, try first to take ownership (use MQSetQueueSecurity to set
yourself as owner), then call MQSetQueueSecurity again to change the queue
permissions.

Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.

"Brian Ledsworth" <BrianLe...@hotmail.com> wrote in message
news:74ea9057.03072...@posting.google.com...

Brian Ledsworth

unread,
Jul 29, 2003, 1:01:01 PM7/29/03
to
Doran,

Thanks a lot for the help. I've have a c++ program that works on my
local PC, but fails on the server. I'll keep looking into it futher
(as I can get it to work on one device). The only difference is my PC
is in a domain and the server is not (e.g. msmq in workgroup mode).

Thanks again!

Brian Ledsworth

Brian Ledsworth

unread,
Jul 30, 2003, 5:39:25 PM7/30/03
to
I'm still not able to get this queue back. I even added
MQDeleteQueue, and I can take ownership and delete any other queue I
create, but not this particular one. Any ideas?

hr = MQSetQueueSecurity (wszFormatNameBuffer,
OWNER_SECURITY_INFORMATION,
&absoluteSD);

hr = MQSetQueueSecurity (wszFormatNameBuffer,
DACL_SECURITY_INFORMATION,
&absoluteSD);

hr = MQDeleteQueue(wszFormatNameBuffer);

Thanks
Brian Ledsworth

Doron Juster [MSFT]

unread,
Jul 31, 2003, 9:58:41 AM7/31/03
to
If it's a private queue and you're local administrator on the computer then
enter the msmq\storage\lqs directory and delete the file which represent the
queue. Each private queue is represented by a file. This directory also hold
cache of local public queues. Be careful not to delete other files, delete
only the one for the "bad" queue!
Then net stop/start the msmq service.

Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.

"Brian Ledsworth" <BrianLe...@hotmail.com> wrote in message

news:74ea9057.03073...@posting.google.com...

Brian Ledsworth

unread,
Jul 31, 2003, 1:02:48 PM7/31/03
to
Thanks again for you help Doron!

Brian

0 new messages