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 » fileinput node file ownership

Post new topic  Reply to topic
 fileinput node file ownership « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Thu Apr 16, 2015 10:41 am    Post subject: fileinput node file ownership Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

Is there any way i can control the ownership of the file that lands in the mqsiarchive directory?

I see the files that are picked up by the fileinput node lands in the mqsiarchive directory with the original owner/group.

Is there a way to overwrite this behavior? I need the files to land with brokers service user as the owner and its primary group.
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Apr 16, 2015 10:48 am    Post subject: Re: fileinput node file ownership Reply with quote

Grand High Poobah

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

paustin_ours wrote:
Is there a way to overwrite this behavior? I need the files to land with brokers service user as the owner and its primary group.


On Unix you can use chmod/umask to set the directory so that files moved to it assume new owners and groups and the right permissions (pun unavoidable). Same as with any file writing application in Unix.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Thu Apr 16, 2015 12:04 pm    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

chmod i can set on the directory to give write access and umask i can use to control permission but how would i change ownership?

input file say test owner(user1) group(grp1) 775 permission on fileinput directory.

say broker id is part of grp1, it will pick up the file process it and move it to mqsiarchive directory. mqsi* directories are owned by brk id and broker grp. The file in mqsiarchive still has user1 and grp1. I am trying to get the file to be brk id and grp1(or)brk group.
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Apr 16, 2015 12:11 pm    Post subject: Reply with quote

Grand High Poobah

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

paustin_ours wrote:
chmod i can set on the directory to give write access and umask i can use to control permission but how would i change ownership?


Because if you set the directory attributes via chmod to change the owner and group of files placed within it, files placed within it have their ownership and group membership changed.

Speak to your Unix admin if you don't believe me.

paustin_ours wrote:
I am trying to get the file to be brk id and grp1(or)brk group.


Yes, I understand that, and you can't get broker to do it. You can get Unix to do it.
_________________
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 » fileinput node file ownership
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.