| Author | 
		  Message
		 | 
		
		  | namakkal | 
		  
		    
			  
				 Posted: Thu Jun 04, 2009 1:46 am    Post subject: Doubt Regarding the Writing a file with 777 permission | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 06 Feb 2009 Posts: 19
  
  | 
		  
		    
			  
				Hi,
 
 
can any one please tell me how to set the all permission(read -Write-delete-777) to file while writing the file using FileOutput node.
 
 
Regards
 
Sats | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Jun 04, 2009 7:50 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				At the command prompt type 
   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Thu Jun 04, 2009 8:54 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	At the command prompt type 
   | 
   
 
 
 
oopsss
 
 
I guess you meant
 
 
 
 
   _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Jun 04, 2009 9:04 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| AkankshA wrote: | 
   
  
	
   
	| fjb_saper wrote: | 
   
  
	At the command prompt type man uumask   | 
   
 
 
 
oopsss
 
 
I guess you meant
 
 
 
 
   | 
   
 
Evidently... just shows I'm knowledgeable enough in Unix to be dangerous...   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Jun 05, 2009 12:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				I feel the need to point out that this solution is a UNIX one not a Broker one, will not affect just the files written by the File Output node but any file subject to the umask.
 
 
Possibly important to the original poster. Possibly irrelevant. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fitzcaraldo | 
		  
		    
			  
				 Posted: Thu Nov 12, 2009 6:26 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 05 May 2003 Posts: 98
  
  | 
		  
		    
			  
				I'd like to revive this thread..
 
 
We are using the FileOutput node on z/OS and all files are written with 666 permissions which the security folks have deemed unacceptable.  
 
 
I understand that we can set umask for the broker ID but am concerned about the implications this may have for broker operation.  
 
 
Has anyone had any experience setting umask to solve this problem (on any platform)? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sarathmattam | 
		  
		    
			  
				 Posted: Fri Nov 13, 2009 5:42 am    Post subject: Can we use a shell script ?? | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 05 Sep 2008 Posts: 94
  
  | 
		  
		    
			  
				Am afraid whether my understanding is correct or not.
 
 
But if the file delivery is not an online one , then i think u can make use of a small shell script  .. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rajparekh08 | 
		  
		    
			  
				 Posted: Mon Nov 16, 2009 10:09 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 21 Sep 2009 Posts: 58 Location: India- Bagalore 
  | 
		  
		    
			  
				If it is on unix environment,
 
then you can use the following command:
 
chmod "file name" "permission"
 
like
 
chomod 755 example.txt | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Mon Nov 16, 2009 10:55 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				
   
	| rajparekh08 wrote: | 
   
  
	If it is on unix environment,
 
then you can use the following command:
 
chmod "file name" "permission"
 
like
 
chomod 755 example.txt | 
   
 
 
 
It should be 
 
 
   
	| Code: | 
   
  
	| chmod 755 example.txt | 
   
 
 
 
However you are making the file executable. Do you really want to do that? I'm sure there is a more suitable mask value? Perhaps 666 ( -rw-rw-rw ) _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |