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 » General IBM MQ Support » MQ error logs permissions

Post new topic  Reply to topic
 MQ error logs permissions « View previous topic :: View next topic » 
Author Message
Boomn4x4
PostPosted: Mon Jun 25, 2012 5:05 am    Post subject: MQ error logs permissions Reply with quote

Disciple

Joined: 28 Nov 2011
Posts: 172

I'm trying to write a script that monitors the /var/mqm/qmgrs/QMGR/errors directory as I have another script that is processing the log files and archiving the files that are no longer needed for replay. I'm essentially just issuing a "du /var/mqm/qmgrs/QMGR/errors" to get a size of the directory. For whatever reason that directory is not world readable. My intent is for my monitoring application run this script and report its results, the application is run as a different user. It seems silly to me that if I want to do nothing more than read the size of the directory that I would have to add that user to the mqm group thereby giving that use full administration access which is not what I want to do.

Are there anyways to change what users have access to read that log directory?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 25, 2012 5:13 am    Post subject: Re: MQ error logs permissions Reply with quote

Grand High Poobah

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

Boomn4x4 wrote:
Are there anyways to change what users have access to read that log directory?


chmod?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Boomn4x4
PostPosted: Mon Jun 25, 2012 5:18 am    Post subject: Re: MQ error logs permissions Reply with quote

Disciple

Joined: 28 Nov 2011
Posts: 172

Vitor wrote:
Boomn4x4 wrote:
Are there anyways to change what users have access to read that log directory?


chmod?


Is that safe? From what I understand, permissions are set quite specifically and for specific reasons.

Also, when new log files are created and the qmgr is stopped/started the permissions roll back.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 25, 2012 5:35 am    Post subject: Re: MQ error logs permissions Reply with quote

Grand High Poobah

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

Boomn4x4 wrote:
Is that safe? From what I understand, permissions are set quite specifically and for specific reasons.


They are, but you need to balance the "safety" of changing the file permissions with the "safety" of running an application which is monitoring the queue manager (an administrative function) outside the administrative group. IHMO it's safer, easier & more convienient to have proper controls over the application and what it's doing, then run it inside mqm.

Boomn4x4 wrote:
Also, when new log files are created and the qmgr is stopped/started the permissions roll back.


That sounds like the chmod is not applied properly, i.e. with proper reference to how that file system permissions are set up. You're correct in saying that a simple chmod doesn't work; I'm correct in saying the chmod command can be used to achieve the effect you're looking for.

I question the wisdom of doing that.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Jun 25, 2012 6:04 am    Post subject: Re: MQ error logs permissions Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Boomn4x4 wrote:
I'm trying to write a script that monitors the /var/mqm/qmgrs/QMGR/errors directory as I have another script that is processing the log files and archiving the files that are no longer needed for replay...

There are no files in that directory required for replay; the only files that should be there are the three AMQERR logs. If, on the other hand you mean the content of /var/mqm/logs then that is a different matter and there are at least two SupportPacs out there which should be of use to you before you reinvent the wheel.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Jun 25, 2012 2:21 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

http://www-01.ibm.com/support/docview.wss?uid=swg21446338

Quote:

The following information describes the security applied to the files and directories under /var/mqm/ and why the file-system permissions are set as they are.
In order to ensure the correct operation of the WebSphere MQ it is not recommended that you alter the file system permissions as set by WebSphere MQ.

_________________
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 » General IBM MQ Support » MQ error logs permissions
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.