| Author | 
		  Message
		 | 
		
		  | vininx | 
		  
		    
			  
				 Posted: Mon Jan 30, 2012 12:25 pm    Post subject: FileOutput Node issue | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 13 Oct 2009 Posts: 69
  
  | 
		  
		    
			  
				Hi All,
 
        I am using a message flow which reads the file from a file input node, transforms the file and places the file into a directory using FileOutput Node. The output file is placed under the broker user id with (-rw-rw----) permission on it and because of it everytime I need to chmod to make the file "world" readable (mainly application user need to view the output file).
 
 
1)  Is there any configuration setting which I am missing in FileOutput node so that broker writes the file with (-rw-rw-r--)
 
 
I have tried by setting umask value to 022 for the broker id and then ran the message flow, but still the output file is placed with (-rw-rw----) only. 
 
 
Please provide your inputs on how to achieve (-rw-rw-r--) permission in output file. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Jan 30, 2012 12:41 pm    Post subject: Re: FileOutput Node issue | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| vininx wrote: | 
   
  
	| Is there any configuration setting which I am missing in FileOutput node so that broker writes the file with (-rw-rw-r--) | 
   
 
 
 
No, it's controlled by the OS.
 
 
   
	| vininx wrote: | 
   
  
	| I have tried by setting umask value to 022 for the broker id and then ran the message flow, but still the output file is placed with (-rw-rw----) only.  | 
   
 
 
 
Maybe I'm misunderstanding what you're meaning, but I've always applied umask to directories rather than users. 
 
 
In any event, I'd speak to your sys admins about this. Maybe do a restart to ensure the umask is in play. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | adubya | 
		  
		    
			  
				 Posted: Mon Jan 30, 2012 12:47 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK 
  | 
		  
		    
			  
				| Yes, restart WMB after changing umask. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Mon Jan 30, 2012 1:30 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
			  
				What is the name of the Service Id you are running Broker under? What platform are you running on. What version ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
 
Save $20: Coupon Code: MQSERIES_READER | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vininx | 
		  
		    
			  
				 Posted: Mon Jan 30, 2012 1:34 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 13 Oct 2009 Posts: 69
  
  | 
		  
		    
			  
				Service ID:- esbbrkr
 
platform:- Redhat Linux
 
WMB:- 7.0.0.1 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Mon Jan 30, 2012 1:43 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
			  
				What is the primary group Id for esbbrkr ? What secondary groups does it belong to? What is the version of Redhat ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
 
Save $20: Coupon Code: MQSERIES_READER | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vininx | 
		  
		    
			  
				 Posted: Wed Feb 01, 2012 12:17 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 13 Oct 2009 Posts: 69
  
  | 
		  
		    
			  
				Hi All,
 
        The sticky bit at the group level was set to the output directory so that broker writes ouput file(-rw-rw----) with applications GUID  inside output directoryand now application users are able to read the file from that directory. Many thanks for all your responses | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |