|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
fileinput node file ownership |
« View previous topic :: View next topic » |
Author |
Message
|
paustin_ours |
Posted: Thu Apr 16, 2015 10:41 am Post subject: fileinput node file ownership |
|
|
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 |
|
 |
Vitor |
Posted: Thu Apr 16, 2015 10:48 am Post subject: Re: fileinput node file ownership |
|
|
 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 |
|
 |
paustin_ours |
Posted: Thu Apr 16, 2015 12:04 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Thu Apr 16, 2015 12:11 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|