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 » WebSphere Message Broker (ACE) Support » how to avoid to run few mqsi commands by a particular user

Post new topic  Reply to topic
 how to avoid to run few mqsi commands by a particular user « View previous topic :: View next topic » 
Author Message
mqlover
PostPosted: Mon Feb 17, 2014 8:12 pm    Post subject: how to avoid to run few mqsi commands by a particular user Reply with quote

Disciple

Joined: 25 Jul 2010
Posts: 176

Hi,

I have a contact admin user id created which ideally should have all the permissions to do mqsilist to the brokers running, but this user id should not have any authority to deploy any of the bar file to any of the execution groups. How do I avoid this?

Is there any way that Ican restrict the user only to do mqsilist and not run mqsideploy?

Kindly help me on this.

Thanks in advance
Back to top
View user's profile Send private message
Esa
PostPosted: Mon Feb 17, 2014 11:02 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

If the broker runs on UNIX you could consider moving the user to a group that doesn't have execute permission to the commands. And removing the directory from the users PATH. Then linking to the commands from somewhere else (or in worst case copying) and giving the user permissions to execute them.

Something like that, don't take these as precise instructions. Implementing this will require some trial and error style testing. But I'm sure there are experts who can guide you further or tell you if my suggestion is not feasible. Like Tibor, for example.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Feb 18, 2014 12:08 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

First of all - tell him to use the toolkit or message broker explorer!

You could create a sudo rule to allow the use of mqsilist under an id which is a member of mqbrkrs group.
_________________
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
mqlover
PostPosted: Tue Feb 18, 2014 12:20 am    Post subject: Reply with quote

Disciple

Joined: 25 Jul 2010
Posts: 176

zpat wrote:
First of all - tell him to use the toolkit or message broker explorer!

You could create a sudo rule to allow the use of mqsilist under an id which is a member of mqbrkrs group.


Thanks so much for the reply. As it would be in prod environment, we are not supposed to use explorer tool.
This id should just do a health check like the mqsilist to c that brokers and egs and messages flows are running.

How do I use this sudo option?

Thanks much
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Feb 18, 2014 12:43 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

There is nothing wrong with using message broker explorer in production - it is an operations tools.

The access of MBX is controlled by the broker security ACLs - so that view only access is harmless.

MBX will be issuing CMP API calls - just as mqsilist (presumably) does - what's the difference?

Running commands under sudo is a unix feature that you can google.
_________________
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
Gralgrathor
PostPosted: Tue Feb 18, 2014 1:06 am    Post subject: Re: how to avoid to run few mqsi commands by a particular us Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

mqlover wrote:
Is there any way that Ican restrict the user only to do mqsilist and not run mqsideploy?


Does he have a wife and children? Or any relatives or friends he's really close to?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Feb 18, 2014 5:44 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

zpat wrote:
Running commands under sudo is a unix feature that you can google.




This is how we restrict this - wrap the command in a script, and control who can execute the script.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 18, 2014 9:32 pm    Post subject: Reply with quote

Grand High Poobah

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

Guys, guys, guys,

Did you look at broker security?
The platform has not been discussed. Evidently if he has the requisite MQ authorities deployment will be possible...

Just look into all aspects and don't give the user mqm or mqbrokers group membership..., nor membership in the administrators group in windows....

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqlover
PostPosted: Wed Feb 19, 2014 7:43 pm    Post subject: how to avoid to run few mqsi commands by a particular user Reply with quote

Disciple

Joined: 25 Jul 2010
Posts: 176

So the user id created should not be part of mqm or mqbrokers group?
Actually I added the user into mqbrokers group, should I remove it from the group. If I remove it, how will I able to run mqsilist?
Using sudo ?

Thanks for your help, need more advise as well

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 20, 2014 5:43 am    Post subject: Re: how to avoid to run few mqsi commands by a particular us Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqlover wrote:
So the user id created should not be part of mqm or mqbrokers group?




mqlover wrote:
Actually I added the user into mqbrokers group, should I remove it from the group.




mqlover wrote:
If I remove it, how will I able to run mqsilist?
Using sudo ?



_________________
Honesty is the best policy.
Insanity is the best defence.
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 » WebSphere Message Broker (ACE) Support » how to avoid to run few mqsi commands by a particular user
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.