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 » specify access rights on files created by broker

Post new topic  Reply to topic
 specify access rights on files created by broker « View previous topic :: View next topic » 
Author Message
suraj
PostPosted: Tue Mar 25, 2008 6:34 am    Post subject: specify access rights on files created by broker Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

Hi
Environment: unix(AIX)
Broker Version: 6.1

There are 2 situations where files are being written or created from a message flow
1. Using a fileoutput node
2. Using a trace node to log the exceptions in error handling

Now in both cases the access rights on the file are with the userid on which the broker runs.

How do i specify these access rights on the file from the flow to particular userid other than the one on which the broker is configured?
Something like chmod command..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 25, 2008 6:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't.

EDIT: You can't do this within Broker itself, other than by using Java code to call out to external OS level functions.

You may be able to adjust things using the umask on the output directory for the FileOutput node.

Don't use Trace node for writing business data to a file.
_________________
I am *not* the model of the modern major general.


Last edited by jefflowrey on Tue Mar 25, 2008 6:50 am; edited 1 time in total
Back to top
View user's profile Send private message
suraj
PostPosted: Tue Mar 25, 2008 6:44 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

i am not much worried about the trace node...
but for the fileoutput node how will applications that run under a different userid access the output file created by the broker then??
Is there any workarround for this??
Back to top
View user's profile Send private message
suraj
PostPosted: Tue Mar 25, 2008 6:59 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

thanks for the reply...

I am using the trace node only to write out exceptions in error handling flow..
Back to top
View user's profile Send private message
JLRowe
PostPosted: Tue Mar 25, 2008 9:17 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

suraj wrote:
i am not much worried about the trace node...
but for the fileoutput node how will applications that run under a different userid access the output file created by the broker then??
Is there any workarround for this??


By setting the primary group of the broker userid, and setting the umask.

This is not an issue if you know what you are doing
Back to top
View user's profile Send private message Send e-mail
suraj
PostPosted: Tue Mar 25, 2008 9:28 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

Sorry.. I dint exactly get what you are trying to say..
Can you please elaborate a bit?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 25, 2008 12:10 pm    Post subject: Reply with quote

Grand High Poobah

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

suraj wrote:
Sorry.. I dint exactly get what you are trying to say..
Can you please elaborate a bit?


Show the response to your Unix admin, and ask him.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Mar 25, 2008 1:21 pm    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

The primary group of the broker service ID should be mqm. Every MQ object the broker creates will have an implicit permission granted to its primary group. Cleanliness is next to Godliness.

The broker could write to the apps directory (via a symlink if need be) and the apps directory could have the g+s set so it has the apps group ownership. Of course, the broker service ID needs permission to write to the directory.

This is purely a UNIX permissions exercise. Consult with your UNIX admin.
_________________
Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3
Back to top
View user's profile Send private message AIM Address
jefflowrey
PostPosted: Tue Mar 25, 2008 1:30 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

JosephGramig wrote:
This is purely a UNIX permissions exercise. Consult with your UNIX admin.


Which may even be a "she", rather than a "he".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 25, 2008 2:43 pm    Post subject: Reply with quote

Grand High Poobah

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

jefflowrey wrote:
JosephGramig wrote:
This is purely a UNIX permissions exercise. Consult with your UNIX admin.


Which may even be a "she", rather than a "he".




I'm rightly chastised, and will beat myself with the Trout of Equality.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
suraj
PostPosted: Wed Mar 26, 2008 5:48 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jul 2007
Posts: 56

Thanks eveyone for your responses!!
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 » specify access rights on files created by broker
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.