ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Security » setmqaut doesn't revoke authorizations to a queue

Post new topic  Reply to topic
 setmqaut doesn't revoke authorizations to a queue « View previous topic :: View next topic » 
Author Message
yasaboy
PostPosted: Fri Nov 21, 2014 8:31 pm    Post subject: setmqaut doesn't revoke authorizations to a queue Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

HI,

I want to remove all the permissions to access the TEST.OUTQUEUE1 for all the users and add +put and +inq privileges to only the user nev51. Following are my commands that doesn't work?

any suggestions ?

Code:
>dspmqaut -m TESTQMAN.1 -n TEST.OUTQUEUE1 -t queue -p dev51
Entity newcdev51 has the following authorizations for object TEST.OUTQUEUE1:
        get
        browse
        put
        inq
        set
        crt
        dlt
        chg
        dsp
        passid
        passall
        setid
        setall
        clr
>setmqaut -m TESTQMAN.1 -n TEST.OUTQUEUE1 -t queue -p dev51 -remove
The setmqaut command completed successfully.

>dspmqaut -m TESTQMAN.1 -n TEST.OUTQUEUE1 -t queue -p dev51
Entity newcdev51 has the following authorizations for object TEST.OUTQUEUE1:
        get
        browse
        put
        inq
        set
        crt
        dlt
        chg
        dsp
        passid
        passall
        setid
        setall
        clr
>
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Nov 21, 2014 11:54 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

I always use the -all operand on all my setmqaut commands, this avoids the need to remove the profile.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Nov 22, 2014 3:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

Something fishy: Why do you get the permissions for newdev51 displayed when you asked for the permissions for dev51 ??

Are you by chance on Unix Linux? What have you done to enable principal permissions? Which version of WMQ are you on?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Sat Nov 22, 2014 4:41 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

By applying setmqaut to the dev51 ID, you have granted that same access to the primary group of dev51, and so now all members of that group have the same access.


First research what the primary group is for dev51, then find out all the members of that group. Then decide what the ramifications are for removing all access for that group and all its members to clean up what you unintentionally granted.


This is the right way to do what you originally asked:
Code:
setmqaut -m TESTQMAN.1 -n TEST.OUTQUEUE1 -t queue -g A_Group_That_dev51_Is_In -all +put +inq


Like zpat said, always start with -all, then list specifically what you want. And on Unix, before MQ 8, always, always apply permissions to groups, never IDs.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Security » setmqaut doesn't revoke authorizations to a queue
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.