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 » usertrace for none mqbrkrs-users

Post new topic  Reply to topic
 usertrace for none mqbrkrs-users « View previous topic :: View next topic » 
Author Message
PieterV
PostPosted: Thu Jul 20, 2006 7:03 am    Post subject: usertrace for none mqbrkrs-users Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

regular users of the Message broker aren't in the mqbrkrs group nor in the mqm group.

they should only be able to create, deploy, debug flows.
so for so good.

but i would also like them to be able to trace their flows.
Therefor they should be able to execute the following commands:

Code:

$MQSIDIR/mqsireadlog $BROKER -u -e $EG -o unformatted
$MQSIDIR/mqsiformatlog -iunformatted -o trace$EG
$MQSIDIR/mqsichangetrace $BROKER -u -e $EG -r


but if they arent in the mqbrkrs group they receive the following errors:
Code:

ld.so.1: mqsireadlog: fatal: libImbCmdLib.so: open failed: No such file or directory
Killed
ld.so.1: mqsiformatlog: fatal: libImbCmdLib.so: open failed: No such file or directory
Killed
ld.so.1: mqsichangetrace: fatal: libImbCmdLib.so: open failed: No such file or directory
Killed


adding them to the mqbrkrs group is not an option because then they can stop the broker, i don't trust them enough for those priviliges.

letting them run mqsiprofile doesnt work either, i receive the same errors.

Anybody an idea?
Back to top
View user's profile Send private message
fschofer
PostPosted: Thu Jul 20, 2006 7:41 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

i once wrote some scripts which were executed from the non mqbrkrs users via sudo commands.

Grretings Frank

Sample:
Code:
user script:
sudo -u mqsi /export/home/mqsi/mqsichangetrace.ksh " <Brokername> -u -e <EG Name> -f <Flow Name>I -l debug -c 10000 -r "

mqsi script:
. /opt/wmb6/bin/mqsiprofile
/opt/wmb6/bin/mqsichangetrace $1 $2 $3 $4 $5 $6 $7 $8 $9

sudoers:
User_Alias MQSI = userid,userid,
Cmnd_Alias MQSI_MQSICHANGETRACE  = /export/home/mqsi/mqsichangetrace.ksh
MQSI_TRACE ALL=(mqsi) NOPASSWD: MQSI_MQSICHANGETRACE
Back to top
View user's profile Send private message Send e-mail
ydsk
PostPosted: Thu Jul 20, 2006 12:23 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

In v6 you need to use ACLs.

See the documentation for mqsilistaclentry, mqsicreateaclentry, and configmgrproxy.

Group security will not work in v6 though the documentation says otherwise. In fact the documentation is a bit misleading on this front. Don't know if IBM would ever correct it.

Thanks.
ydsk.
Back to top
View user's profile Send private message
PieterV
PostPosted: Sun Jul 23, 2006 10:47 pm    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

@ydsk:
the user that needs to trace to execution group has all possible rights on the execution group granted trought the configuration proxy.
so i don't see how i can resolve it using the ACLs.


Another question, what if i place a certain user in the mqbrkrs group, will he be able to start/stop broker components?
according to the following documentation, not (if the user is not equal to the service user id).

[url]
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.msgbroker.helphome.doc/help_home_msgbroker.htm&tab=search&searchWord=BIP2164&maxHits=50
[/url]

In the above documentation they say that who wants to run the trace commands should be member of the mqbrkrs group.
But those users automaticly receive other rights as well, what do you think about this?
Back to top
View user's profile Send private message
mqmatt
PostPosted: Mon Jul 24, 2006 12:42 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

ydsk wrote:
Group security will not work in v6 though the documentation says otherwise. In fact the documentation is a bit misleading on this front. Don't know if IBM would ever correct it.

If you migrate a Config Manager from v2.1 or v5, group ACLs are automatically created for the mqbr* groups. And you can create ACLs for your own groups (although on UNIX platforms you need runtime FP01 to make it work).
This said, if you think the docs are misleading, please drop a note to idrcf@hursley.ibm.com (including the topic number(s)), or use the 'Feedback' link at the end of each topic.
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 » usertrace for none mqbrkrs-users
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.