Author |
Message
|
ccooper |
Posted: Mon Aug 30, 2010 7:32 am Post subject: Remove Security from Queue Manager and Queues |
|
|
Newbie
Joined: 26 Jul 2010 Posts: 9
|
Hello,
I am currently writng a script that will remove the security off the queue manager and the queues underneath that queue manager. After some reasearch I do not beleive you can just say remove all security from each object? So I have a line for each group that is using the -remove option. However I noticed that you cannot use this with -t qmgr.
How can I remove the security off the qmgr itself? I have been looking around but I cannot find anything. I hav about 9 groups that I want to remove.
Thanks for the help. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 30, 2010 7:42 am Post subject: Re: Remove Security from Queue Manager and Queues |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ccooper wrote: |
I am currently writng a script that will remove the security off the queue manager and the queues underneath that queue manager. |
Why not just disable the OAM?
I'm guessing this isn't production....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ccooper |
Posted: Mon Aug 30, 2010 8:14 am Post subject: |
|
|
Newbie
Joined: 26 Jul 2010 Posts: 9
|
Here is what I am trying to accomplish...
Currently most of our servers that MQ is running on our Domain Controllers. We are planning on demoting the servers to member servers which at that point the MQ objects will not have the appropriate security. So I need to do the following:
1. Remove current object security.
2. Add local groups and then add the domain local groups to them.
3. Re-apply the security for MQ with the new local groups.
I was hoping there was an easy way of removing the MQ security instead of doing one group at a time per queue. Also as I stated in my original post that I am having trouble removing the securty off the queue manager itself.
I hope the above gives a little more detail. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 30, 2010 8:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You could always recreate the qmgr and then apply the appropriate set of permissions to the "new" qmgr. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 30, 2010 8:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
You could always recreate the qmgr and then apply the appropriate set of permissions to the "new" qmgr. |
For what you're trying to achieve this is going to be the fastest / cleanest / easiest. It's certainly going to be a much simpler script than going through one authorization at a time (as you've discovered). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ccooper |
Posted: Mon Aug 30, 2010 9:03 am Post subject: |
|
|
Newbie
Joined: 26 Jul 2010 Posts: 9
|
That was my original thought as well but I thought I would check into otehr options. The only downside I guess to deleted the qmgr is having to reset sequence numbers if they go out of sync. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 30, 2010 9:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The other thing to do is use something to dump out the current security in setmqaut format, and then hand-edit or write some scripting to change + to - and otherwise remove the security you want.
Then you could use that to remove the security. |
|
Back to top |
|
 |
zpat |
Posted: Wed Sep 01, 2010 1:07 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
use the +remove or the -remove option to actually remove the profiles that you can get listed from amqoamd -s |
|
Back to top |
|
 |
|