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 » file permission on AIX using File node

Post new topic  Reply to topic
 file permission on AIX using File node « View previous topic :: View next topic » 
Author Message
yaakovd
PostPosted: Fri Sep 12, 2008 8:47 am    Post subject: file permission on AIX using File node Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Hi

I'm creating files on AIX (MB 6.1) using file output node.

Permission given by MB is:
-rw-rw---- mbadmin mqm.
I need this file read by another user. I allways can add this user to group mqm, but can I create the file with another permission?

thanks
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Sep 12, 2008 10:10 am    Post subject: Reply with quote

Grand High Poobah

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

chmod o+r filename
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
yaakovd
PostPosted: Fri Sep 12, 2008 11:17 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

surprise

but I'm talking about control from MB... without additional scripting...
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Sep 12, 2008 11:54 am    Post subject: Reply with quote

Grand High Poobah

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

Well you might have to change the uumask of the wbrk service userid to allow read for everybody by default....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
yaakovd
PostPosted: Fri Sep 12, 2008 11:21 pm    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

yep... I'll try. will check local security policy. Thanks.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
yaakovd
PostPosted: Sat Sep 13, 2008 10:36 pm    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Found APAR IZ07456: BROKER IGNORES USERS UMASK

USERS AFFECTED: Those users of WebSphere Message Broker Version 6 writing output files from Java on Unix and Linux.

Code:

Websphere Message Broker has been modified so that if the
umask is below 6 and the environment variable MQSI_UMASK_COPY
is set to any non empty string, then the current umask will
be honoured.

In these conditions all files created by the broker including
its own internal files will be given  permissions according to
the local users umask. It is the Unix System Administrators
responsibility to ensure that if the umask is set to allow
world acces then these files are not then overwritten by other
users.


tried add MQSI_UMASK_COPY=022 to mqsiprofile. It is not helps...
As well changing umask of MB user.

Any idea?
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
paranoid221
PostPosted: Mon Sep 15, 2008 8:56 am    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2006
Posts: 101
Location: USA

I think you can.
You'd have to use a JavaCompute node in your flow right after the FileOutput node and write code to execute OS commands from Java by making use of the java.lang.Runtime API.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
and execute OS commands using the exec() method.

Quote:
Here's a sample implementation for Windows platform:
http://forums.sun.com/thread.jspa?messageID=9643938

You'd basically have to pass the complete chmod command for changing the file permissions in UNIX to the exec() method as a string.

And of course you have to add few other lines of code to handle exceptions.

On the flip side, I can bet that there is going to be some resistance (especially security team) from the evangelists at your place on this type of implementation. I do partly agree with them that this is not a very elegant method.

Let me know how it goes.
_________________
LIFE is a series of complex calculations, somewhere multiplied by ZERO.
Back to top
View user's profile Send private message
yaakovd
PostPosted: Mon Sep 15, 2008 1:35 pm    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Of course, but I prefer and expect this basic functionality to be supported by MB.
I opened PMR 34806,003,756 for this problem.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » file permission on AIX using File node
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.